std::experimental::latch
From cppreference.com
< cpp | experimental
|
Defined in header
<experimental/latch>
|
||
class latch; |
(concurrency TS) | |
The latch class is a downward counter of type ptrdiff_t
Unlike std::experimental::barrier, std::experimental::latch can be decremented by a participating thread more than once.
Member functions
constructs a latch (public member function) |
|
| destroys the latch (public member function) |
|
operator= [deleted] |
not copy-assignable (public member function) |
decrements the counter by 1 and blocks until it reaches zero (public member function) |
|
| decrements the counter in a non-blocking manner (public member function) |
|
| tests if the internal counter equals zero (public member function) |
|
| blocks until the counter reaches zero (public member function) |