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) | (동시성 TS) |
내부 카운터를 원자적으로
1
만큼 감소시키고, (필요한 경우) 카운터가 0에 도달할 때까지 호출 스레드를 블록합니다.
내부 카운터가 이미 0인 경우의 동작은 정의되지 않습니다.
이 연산은
synchronizes with
이 래치에서 블록되는 모든 호출과
is_ready
호출 중
true
를 반환하는 모든 호출과 동기화됩니다.
매개변수
(없음)
반환값
(없음)
예외
아무것도 던지지 않습니다.