Create a latch for count events using the monotonic clock.
Declared in <bslmt_latch.h>
Latch(
int count,
std::chrono::steady_clock const& steadyClock);
Create a latch that will synchronize on the specified count number of events, and when count events have been recorded will release any waiting threads. Use the monotonic system clock as the clock against which the absTime timeouts passed to the timedWait methods are interpreted (see {Supported Clock-Types} in the component-level documentation). The behavior is undefined unless 0 <= count.
| Name | Description |
|---|---|
| count | number of events required to release the latch |
| steadyClock | tag selecting the system monotonic clock |