8#ifndef BEAST_UNIT_TEST_THREAD_HPP
9#define BEAST_UNIT_TEST_THREAD_HPP
11#include <xrpl/beast/unit_test/suite.h>
44 t_ = std::move(other.t_);
48 template <
class F,
class... Args>
111 s_->
fail(
"unhandled exception");
void fail(String const &reason, char const *file, int line)
Record a failure.
Replacement for std::thread that handles exceptions in unit tests.
std::thread::id get_id() const
thread & operator=(thread &&other)
thread(suite &s, F &&f, Args &&... args)
std::thread::native_handle_type native_handle_type
static unsigned hardware_concurrency() noexcept
void run(std::function< void(void)> f)
thread(thread const &)=delete
thread & operator=(thread const &)=delete
T hardware_concurrency(T... args)