Create a timed semaphore initially having a count of 0.
Declared in <bslmt_timedsemaphore.h>
explicit
TimedSemaphore(bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_REALTIME);
Optionally specify a clockType indicating the type of the system clock against which the absTime timeouts passed to the timedWait methods 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. This method does not return normally unless there are sufficient system resources to construct the object.
| Name | Description |
|---|---|
| clockType | clock used to interpret timedWait timeouts |