Constructors
Synopses
Declared in <bslmt_barrier.h>
Create a barrier that requires the specified numArrivals to unblock. Optionally specify a clockType indicating the type of the system clock against which the bsls::TimeInterval absTime timeouts passed to the timedWait method are to be interpreted (see {Supported Clock‐Types} in the component‐level documentation). If clockType is not specified then the realtime system clock is used. The behavior is undefined unless 0 < numArrivals.
explicit
Barrier(
int numArrivals,
bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_REALTIME);
Create a barrier that requires the specified numArrivals to unblock. Use the monotonic system clock as the clock against which the absTime timeouts passed to the timedWait methods are interpreted (see {Supported Clock‐Types} in the component‐level documentation). The behavior is undefined unless 0 < numArrivals.
Barrier(
int numArrivals,
std::chrono::steady_clock const&);
Create a barrier that requires the specified numArrivals to unblock. Use the realtime system clock as the clock against which the absTime timeouts passed to the timedWait methods are interpreted (see {Supported Clock‐Types} in the component‐level documentation). The behavior is undefined unless 0 < numArrivals.
Barrier(
int numArrivals,
std::chrono::system_clock const&);
Created with MrDocs