7#include <xrpl/beast/unit_test/suite.h>
43 t_ = std::move(other.t_);
47 template <
class F,
class... Args>
112 s_->fail(
"unhandled exception");
Replacement for std::thread that handles exceptions in unit tests.
Thread(Thread const &)=delete
Thread & operator=(Thread const &)=delete
Thread(Suite &s, F &&f, Args &&... args)
std::thread::native_handle_type native_handle_type
static unsigned hardwareConcurrency() noexcept
std::thread::id getId() const
Thread & operator=(Thread &&other)
void run(std::function< void(void)> f)
T hardware_concurrency(T... args)