BloombergLP::bslmt::Barrier::Barrier

Constructors

Synopses

Declared in <bslmt_barrier.h>

Create a barrier that requires the specified numArrivals to unblock.

explicit
Barrier(
    int numArrivals,
    bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_REALTIME);
» more...

Create a barrier that requires the specified numArrivals to unblock, using the monotonic clock.

Barrier(
    int numArrivals,
    std::chrono::steady_clock const& steadyClock);
» more...

Create a barrier that requires the specified numArrivals to unblock, using the realtime clock.

Barrier(
    int numArrivals,
    std::chrono::system_clock const& systemClock);
» more...

Parameters

NameDescription
numArrivalsnumber of arrivals required to unblock the barrier
clockTypeclock used to interpret timedWait timeouts
steadyClocktag selecting the system monotonic clock
systemClocktag selecting the system realtime clock