hpx/synchronization/stop_token.hpp¶
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace
hpx
Functions
-
template<typename
Callback
>stop_callback
(stop_token, Callback)¶
-
void
swap
(stop_token &lhs, stop_token &rhs)¶
-
void
swap
(stop_source &lhs, stop_source &rhs)¶
Variables
-
constexpr nostopstate_t
nostopstate
= {}¶
-
template<typename
Callback
>
classstop_callback
Public Types
-
template<>
usingcallback_type
= Callback¶
Public Functions
-
template<typename
CB
, typenameEnable
= std::enable_if_t<std::is_constructible_v<Callback, CB>>>stop_callback
(stop_token const &st, CB &&cb)¶
-
template<typename
CB
, typenameEnable
= std::enable_if_t<std::is_constructible_v<Callback, CB>>>stop_callback
(stop_token &&st, CB &&cb)¶
-
~stop_callback
()¶
-
stop_callback
(stop_callback const&)¶
-
stop_callback
(stop_callback&&)¶
-
stop_callback &
operator=
(stop_callback const&)¶
-
stop_callback &
operator=
(stop_callback&&)¶
Private Functions
-
void
execute
()¶
-
template<>
-
class
stop_source
¶ Public Functions
-
stop_source
()¶
-
stop_source
(nostopstate_t)¶
-
stop_source
(stop_source const &rhs)¶
-
stop_source
(stop_source&&)¶
-
stop_source &
operator=
(stop_source const &rhs)¶
-
stop_source &
operator=
(stop_source&&)¶
-
~stop_source
()¶
-
void
swap
(stop_source &s)¶
-
stop_token
get_token
() const¶
-
bool
stop_possible
() const¶
-
bool
stop_requested
() const¶
-
bool
request_stop
()¶
-
-
class
stop_token
¶ -
Public Functions
-
stop_token
()¶
-
stop_token
(stop_token const &rhs)¶
-
stop_token
(stop_token&&)¶
-
stop_token &
operator=
(stop_token const &rhs)¶
-
stop_token &
operator=
(stop_token&&)¶
-
~stop_token
()¶
-
void
swap
(stop_token &s)¶
-
bool
stop_requested
() const¶
-
bool
stop_possible
() const¶
-
-
namespace
p2300_stop_token
¶ Functions
-
template<typename
Callback
>in_place_stop_callback
(in_place_stop_token, Callback)¶
-
template<typename
Callback
>
classin_place_stop_callback
Public Types
-
template<>
usingcallback_type
= Callback¶
Public Functions
-
template<typename
CB
, typenameEnable
= std::enable_if_t<std::is_constructible_v<Callback, CB>>>in_place_stop_callback
(in_place_stop_token const &st, CB &&cb)¶
-
template<typename
CB
, typenameEnable
= std::enable_if_t<std::is_constructible_v<Callback, CB>>>in_place_stop_callback
(in_place_stop_token &&st, CB &&cb)¶
-
~in_place_stop_callback
()¶
-
in_place_stop_callback
(in_place_stop_callback const&)¶
-
in_place_stop_callback
(in_place_stop_callback&&)¶
-
in_place_stop_callback &
operator=
(in_place_stop_callback const&)¶
-
in_place_stop_callback &
operator=
(in_place_stop_callback&&)¶
Private Functions
-
void
execute
()¶
Private Members
-
HPX_NO_UNIQUE_ADDRESS Callback hpx::p2300_stop_token::in_place_stop_callback::callback_
-
in_place_stop_source *
source_
¶
-
template<>
-
class
in_place_stop_source
¶ Public Functions
-
in_place_stop_source
()¶
-
~in_place_stop_source
()¶
-
in_place_stop_source
(in_place_stop_source const&)¶
-
in_place_stop_source
(in_place_stop_source&&)¶
-
in_place_stop_source &
operator=
(in_place_stop_source const&)¶
-
in_place_stop_source &
operator=
(in_place_stop_source&&)¶
-
in_place_stop_token
get_token
() const¶
-
bool
request_stop
()¶
-
bool
stop_requested
() const¶
-
bool
stop_possible
() const¶
Private Functions
Friends
-
friend
hpx::p2300_stop_token::in_place_stop_token
-
friend
hpx::p2300_stop_token::in_place_stop_callback
-
-
class
in_place_stop_token
¶ -
Public Functions
-
constexpr
in_place_stop_token
()¶
-
in_place_stop_token
(in_place_stop_token const &rhs)¶
-
in_place_stop_token
(in_place_stop_token &&rhs)¶
-
in_place_stop_token &
operator=
(in_place_stop_token const &rhs)¶
-
in_place_stop_token &
operator=
(in_place_stop_token &&rhs)¶
-
bool
stop_requested
() const¶
-
bool
stop_possible
() const¶
-
void
swap
(in_place_stop_token &rhs)¶
Private Functions
-
in_place_stop_token
(in_place_stop_source const *source)¶
Private Members
-
in_place_stop_source const *
source_
¶
-
constexpr
-
struct
never_stop_token
¶ Public Types
-
template<typename>
usingcallback_type
= callback_impl¶
Public Static Functions
-
static constexpr bool
stop_requested
()¶
-
static constexpr bool
stop_possible
()¶
Friends
-
friend constexpr bool
operator==
(never_stop_token const&, never_stop_token const&)¶
-
struct
callback_impl
¶ Public Functions
-
template<typename
Callback
>
constexprcallback_impl
(never_stop_token, Callback&&)¶
-
template<typename
-
template<typename>
-
template<typename
-
template<typename