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
(
)
;
|
(동시성 TS) | |
래치를 파괴합니다.
스레드가 동기화 지점에서 차단된 경우 동작은 정의되지 않습니다.
소멸자는 모든 스레드가
wait()
또는
count_down_and_wait()
에서 반환되지 않았더라도, 내부 카운터가 0이어야 하는 경우 호출될 수 있습니다.
소멸자는 모든 스레드가 블로킹 함수에서 반환될 때까지 블로킹될 수 있습니다.
한 스레드가 소멸자를 호출한 후에는 어떤 스레드도 이 래치에서 블록되어서는 안 됩니다.