|
xrpld
|
Replacement for std::thread that handles exceptions in unit tests. More...
#include <thread.h>

Public Types | |
| using | id = std::thread::id |
| using | native_handle_type = std::thread::native_handle_type |
Public Member Functions | |
| Thread ()=default | |
| Thread (Thread const &)=delete | |
| Thread & | operator= (Thread const &)=delete |
| Thread (Thread &&other) | |
| Thread & | operator= (Thread &&other) |
| template<class F, class... Args> | |
| Thread (Suite &s, F &&f, Args &&... args) | |
| bool | joinable () const |
| std::thread::id | getId () const |
| void | join () |
| void | detach () |
| void | swap (Thread &other) |
Static Public Member Functions | |
| static unsigned | hardwareConcurrency () noexcept |
Private Member Functions | |
| void | run (std::function< void(void)> f) |
Private Attributes | |
| Suite * | s_ = nullptr |
| std::thread | t_ |
Replacement for std::thread that handles exceptions in unit tests.
| using beast::unit_test::Thread::native_handle_type = std::thread::native_handle_type |
|
default |
|
delete |
|
explicit |
|
nodiscard |
|
staticnoexcept |
|
private |
|
private |