Constructors
Declared in <bslmt_latch.h>
Create a latch that synchronizes on the specified count events.
explicit
Latch(
int count,
bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_REALTIME);
» more...
Create a latch for count events using the monotonic clock.
Latch(
int count,
std::chrono::steady_clock const& steadyClock);
» more...
Create a latch for count events using the realtime clock.
Latch(
int count,
std::chrono::system_clock const& systemClock);
» more...
| Name | Description |
|---|---|
| count | number of events required to release the latch |
| clockType | clock used to interpret timedWait timeouts |
| steadyClock | tag selecting the system monotonic clock |
| systemClock | tag selecting the system realtime clock |