std::experimental::latch:: count_down_and_wait
From cppreference.net
<
cpp
|
experimental
|
latch
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Extensions for concurrency
| std::future extensions | ||||
| Latches and barriers | ||||
| Atomic smart pointers | ||||
std::experimental::latch
|
latch::count_down_and_wait
|
||||
|
void
count_down_and_wait
(
)
;
|
(1) | (Concurrency TS) |
Dekrementiert atomar den internen Zähler um
1
und blockiert (falls notwendig) den aufrufenden
Thread, bis der Zähler den Wert Null erreicht.
Das Verhalten ist undefiniert, wenn der interne Zähler bereits null ist.
Dieser Vorgang
synchronisiert mit
allen Aufrufen, die auf diesen Latch blockieren, und allen
is_ready
Aufrufen auf diesem Latch, die
true
zurückgeben.
Parameter
(keine)
Rückgabewert
(keine)
Ausnahmen
Wirft nichts.