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);
Create a barrier that requires the specified numArrivals to unblock, using the monotonic clock.
Barrier(
int numArrivals,
std::chrono::steady_clock const& steadyClock);
Create a barrier that requires the specified numArrivals to unblock, using the realtime clock.
Barrier(
int numArrivals,
std::chrono::system_clock const& systemClock);
Parameters
Name |
Description |
numArrivals |
number of arrivals required to unblock the barrier |
clockType |
clock used to interpret |
steadyClock |
tag selecting the system monotonic clock |
systemClock |
tag selecting the system realtime clock |
Created with MrDocs