5#ifndef BEAST_UNIT_TEST_THREAD_HPP
6#define BEAST_UNIT_TEST_THREAD_HPP
8#include <xrpl/beast/unit_test/suite.h>
41 t_ = std::move(other.t_);
45 template <
class F,
class... Args>
108 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)