|
threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
|
#include <future.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| Promise () | |
| Promise (const Promise &)=delete | |
| Promise & | operator= (const Promise &)=delete |
| Promise (Promise &&) noexcept=default | |
| Promise & | operator= (Promise &&) noexcept=default |
| ~Promise () | |
| bool | valid () const noexcept |
| Future< T > | get_future () |
| Retrieve the future. | |
| template<class U = T> requires (!std::is_void_v<U>) | |
| void | set_value (U &&v) |
| template<class U = T> requires std::is_void_v<U> | |
| void | set_value () |
| void | set_exception (const std::exception_ptr &ex) |
Static Public Member Functions | |
| static const comms::DisplayInfo & | display_info () |
| using threadman::Promise< T >::value_type = T |
|
inline |
|
delete |
|
defaultnoexcept |
|
inline |
|
inlinestatic |
|
inline |
Retrieve the future.
Throws FutureAlreadyRetrievedError on the second call.
|
delete |
|
defaultnoexcept |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |