std::stop_source:: stop_requested
From cppreference.net
<
cpp
|
thread
|
stop source
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_source
| Member functions | ||||
| Modifiers | ||||
| Observers | ||||
|
stop_source::stop_requested
|
||||
| Non-member functions | ||||
| Helper tags | ||||
|
bool
stop_requested
(
)
const
noexcept
;
|
(seit C++20) | |
Prüft, ob das
stop_source
-Objekt einen Stop-Zustand hat und ob dieser Zustand eine Stop-Anforderung erhalten hat.
Parameter
(keine)
Rückgabewert
true
wenn das
stop_token
-Objekt einen Stop-Zustand besitzt und eine Stop-Anforderung erhalten hat,
false
andernfalls.
Beispiel
|
Dieser Abschnitt ist unvollständig
Grund: Kein Beispiel |