BloombergLP::bslmt::FastPostSemaphore::FastPostSemaphore

Create a FastPostSemaphore object initially having the specified count.

Synopsis

Declared in <bslmt_fastpostsemaphore.h>

FastPostSemaphore(
    int count,
    std::chrono::system_clock const& systemClock);

Description

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).

Parameters

NameDescription
countinitial number of available resources
systemClocktag selecting the system realtime clock