BloombergLP::bslmt::TimedSemaphore::TimedSemaphore

Constructors

Synopses

Declared in <bslmt_timedsemaphore.h>

Create a timed semaphore initially having a count of 0.

explicit
TimedSemaphore(bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_REALTIME);
» more...

Create a timed semaphore initially having a count of 0.

explicit
TimedSemaphore(std::chrono::steady_clock const& steadyClock);
» more...

Create a timed semaphore initially having a count of 0.

explicit
TimedSemaphore(std::chrono::system_clock const& systemClock);
» more...

Create a timed semaphore initially having the specified count.

explicit
TimedSemaphore(
    int count,
    bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_REALTIME);
» more...

Create a timed semaphore initially having the specified count.

TimedSemaphore(
    int count,
    std::chrono::steady_clock const& steadyClock);
» more...

Create a timed semaphore initially having the specified count.

TimedSemaphore(
    int count,
    std::chrono::system_clock const& systemClock);
» more...

Parameters

NameDescription
clockTypeclock used to interpret timedWait timeouts
steadyClocktag selecting the system monotonic clock
systemClocktag selecting the system realtime clock
countinitial count of the semaphore