Constructors
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...
| Name | Description |
|---|---|
| numArrivals | number of arrivals required to unblock the barrier |
| clockType | clock used to interpret timedWait timeouts |
| steadyClock | tag selecting the system monotonic clock |
| systemClock | tag selecting the system realtime clock |