std::experimental::latch:: count_down
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
|
||||
|
void
count_down
(
ptrdiff_t n
=
1
)
;
|
(1) | (concurrency TS) |
호출자를 차단하지 않고 내부 카운터를 n 만큼 원자적으로 감소시킵니다.
만약 n 이 내부 카운터의 값보다 크거나 음수인 경우, 동작은 정의되지 않습니다.
이 연산은 synchronizes with 이 래치를 블록하는 모든 호출과 is_ready 호출 중 true 를 반환하는 모든 호출과 동기화됩니다.
매개변수
| n | - | 내부 카운터가 감소되는 값 |
반환값
(없음)
예외
아무것도 던지지 않습니다.