BloombergLP::bslmt::Latch::Latch

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);
» 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...

Parameters

NameDescription
countnumber of events required to release the latch
clockTypeclock used to interpret timedWait timeouts
steadyClocktag selecting the system monotonic clock
systemClocktag selecting the system realtime clock