BloombergLP::bslmt::TimedSemaphore::TimedSemaphore

Create a timed semaphore initially having a count of 0. 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). This method does not return normally unless there are sufficient system resources to construct the object.

Synopsis

Declared in <bslmt_timedsemaphore.h>

explicit
TimedSemaphore(std::chrono::steady_clock const&);