Constructors
Synopses
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);
Create a latch for count events using the monotonic clock.
Latch(
int count,
std::chrono::steady_clock const& steadyClock);
Create a latch for count events using the realtime clock.
Latch(
int count,
std::chrono::system_clock const& systemClock);
Parameters
Name |
Description |
count |
number of events required to release the latch |
clockType |
clock used to interpret |
steadyClock |
tag selecting the system monotonic clock |
systemClock |
tag selecting the system realtime clock |
Created with MrDocs