hpx/threading/thread.hpp¶
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace
hpx
-
Functions
-
void
set_thread_termination_handler
(thread_termination_handler_type f)¶
-
class
thread
¶ -
Public Functions
-
thread
()¶
-
template<typename
F
, typenameEnable
= typename std::enable_if<!std::is_same<typename std::decay<F>::type, thread>::value>::type>thread
(F &&f)¶
-
template<typename
F
>thread
(threads::thread_pool_base *pool, F &&f)¶
-
template<typename
F
, typename ...Ts
>thread
(threads::thread_pool_base *pool, F &&f, Ts&&... vs)¶
-
~thread
()¶
-
bool
joinable
() const¶
-
void
join
()¶
-
void
detach
()¶
-
native_handle_type
native_handle
() const¶
-
void
interrupt
(bool flag = true)¶
-
bool
interruption_requested
() const¶
-
hpx::future<void>
get_future
(error_code &ec = throws)¶
Public Static Functions
-
static unsigned int
hardware_concurrency
()¶
Private Functions
-
void
terminate
(const char *function, const char *reason) const¶
-
bool
joinable_locked
() const¶
-
void
detach_locked
()¶
-
void
start_thread
(threads::thread_pool_base *pool, hpx::move_only_function<void()> &&func)¶
Private Static Functions
-
class
id
¶ Public Functions
-
id
()¶
-
id
(threads::thread_id_ref_type const &i)¶
-
id
(threads::thread_id_ref_type &&i)¶
Friends
-
friend
hpx::thread
-
bool
operator==
(thread::id const &x, thread::id const &y)¶
-
bool
operator!=
(thread::id const &x, thread::id const &y)¶
-
bool
operator<
(thread::id const &x, thread::id const &y)¶
-
bool
operator>
(thread::id const &x, thread::id const &y)¶
-
bool
operator<=
(thread::id const &x, thread::id const &y)¶
-
bool
operator>=
(thread::id const &x, thread::id const &y)¶
-
-
-
namespace
this_thread
Functions
-
void
yield
()¶
-
threads::thread_priority
get_priority
()¶
-
void
interruption_point
()¶
-
bool
interruption_enabled
()¶
-
bool
interruption_requested
()¶
-
void
interrupt
()¶
-
void
sleep_until
(hpx::chrono::steady_time_point const &abs_time)¶
-
void
sleep_for
(hpx::chrono::steady_duration const &rel_time)¶
-
class
disable_interruption
¶ -
Private Functions
-
disable_interruption
(disable_interruption const&)¶
-
disable_interruption &
operator=
(disable_interruption const&)¶
Private Members
-
bool
interruption_was_enabled_
¶
Friends
-
friend
hpx::this_thread::restore_interruption
-
-
class
restore_interruption
¶ -
Private Functions
-
restore_interruption
(restore_interruption const&)¶
-
restore_interruption &
operator=
(restore_interruption const&)¶
Private Members
-
bool
interruption_was_enabled_
¶
-
-
void
-
void