std::experimental::latch:: ~latch
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 | ||||
|
~latch
(
)
;
|
(concurrency TS) | |
Destruye el latch.
El comportamiento es indefinido si un hilo está bloqueado en el punto de sincronización.
El destructor puede ser llamado incluso si no todos los hilos han regresado de
wait()
o
count_down_and_wait()
, siempre que el contador interno debe ser igual a cero.
El destructor puede bloquearse hasta que todos los hilos hayan regresado de las funciones de bloqueo.
Ningún hilo puede bloquearse en este latch después de que un hilo haya invocado el destructor.