hpx/threading/jthread.hpp¶
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace
hpx
-
-
class
jthread
¶ -
Public Functions
-
jthread
()¶
-
template<typename
F
, typename ...Ts
, typenameEnable
= typename std::enable_if<!std::is_same<typename std::decay<F>::type, jthread>::value>::type>jthread
(F &&f, Ts&&... ts)¶
-
~jthread
()¶
-
bool
joinable
() const¶
-
void
join
()¶
-
void
detach
()¶
-
native_handle_type
native_handle
()¶
-
stop_source
get_stop_source
()¶
-
stop_token
get_stop_token
() const¶
-
bool
request_stop
()¶
Public Static Functions
-
static unsigned int
hardware_concurrency
()¶
Private Static Functions
-
template<typename
F
, typename ...Ts
>
static voidinvoke
(std::false_type, F &&f, stop_token&&, Ts&&... ts)¶
-
template<typename
F
, typename ...Ts
>
static voidinvoke
(std::true_type, F &&f, stop_token &&st, Ts&&... ts)¶
-
-
class