|
rippled
|
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 | get_id () const |
| void | join () |
| void | detach () |
| void | swap (thread &other) |
Static Public Member Functions | |
| static unsigned | hardware_concurrency () 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 |
| std::thread::id beast::unit_test::thread::get_id | ( | ) | const |
|
staticnoexcept |
|
private |
|
private |