Namespaces
Variants

std:: nostopstate, std:: nostopstate_t

From cppreference.net
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe reclamation
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
Definiert in Header <stop_token>
struct nostopstate_t { explicit nostopstate_t ( ) = default ; } ;
(1) (seit C++20)
inline constexpr std:: nostopstate_t nostopstate { } ;
(2) (seit C++20)
1) Leerer Tag-Typ, der als Platzhalter im std::stop_source Nicht-Standard-Konstruktor verwendet werden soll, wodurch die konstruierte std::stop_source leer wird ohne assoziierten Stop-Zustand.
2) Die entsprechende konstante Objektinstanz von std::nostopstate_t zur Verwendung bei der Konstruktion eines leeren std::stop_source , als Platzhalterwert im nicht-standardmäßigen Konstruktor.

Siehe auch

Klasse, die eine Anforderung zum Stoppen eines oder mehrerer std::jthread s darstellt
(Klasse)