libstdc++
|
Public Types | |
using | id = thread::id |
using | native_handle_type = thread::native_handle_type |
Public Member Functions | |
template<typename _Callable , typename... _Args, typename = enable_if_t<!is_same_v<remove_cvref_t<_Callable>, jthread>>> | |
jthread (_Callable &&__f, _Args &&... __args) | |
jthread (const jthread &)=delete | |
jthread (jthread &&) noexcept=default | |
void | detach () |
id | get_id () const noexcept |
stop_source | get_stop_source () noexcept |
stop_token | get_stop_token () const noexcept |
void | join () |
bool | joinable () const noexcept |
native_handle_type | native_handle () |
jthread & | operator= (const jthread &)=delete |
jthread & | operator= (jthread &&__other) noexcept |
bool | request_stop () noexcept |
void | swap (jthread &__other) noexcept |
Static Public Member Functions | |
static unsigned | hardware_concurrency () noexcept |
Friends | |
void | swap (jthread &__lhs, jthread &__rhs) noexcept |
A thread that can be requested to stop and automatically joined.
using std::jthread::id = thread::id |
using std::jthread::native_handle_type = thread::native_handle_type |
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |