std::jthread::get_stop_token
From cppreference.com
C++
Concurrency support library
|
|
std::jthread
Member functions | ||||
Observers | ||||
Operations | ||||
Stop token handling | ||||
jthread::get_stop_token | ||||
Non-member functions | ||||
std::stop_token get_stop_token() const noexcept; |
(since C++20) | |
Returns a std::stop_token associated with the same shared stop-state held internally by the jthread
object.
Parameters
(none)
Return value
A value of type std::stop_token associated with stop-state held internally by jthread
object.
Example
This section is incomplete Reason: no example |