[ Web Proxy ]
URL:
Viewing: https://en.cppreference.com/cpp/thread/inplace_stop_source/get_token [Back]  [Original]

std::inplace_stop_source::get_token - cppreference.com
cppreference.com
Namespaces
Variants

std::inplace_stop_source::get_token

From cppreference.com
 
 
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
Safe Reclamation
Read-Copy-Update Mechanism
(C++26)
Hazard Pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
Memory ordering
(C++11)(deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
 
 
std::inplace_stop_token get_token() const noexcept;
(since C++26)

Returns a new associated std::inplace_stop_token object whose stop_source_ member is equal to *this.

Return value

An inplace_stop_token object referencing *this sources stop-state.

Example

See also

returns a std::stop_token for the associated stop-state
(public member function of std::stop_source) [edit]

Web Proxy Viewer  |  New URL  |  Original Page