BloombergLP::bslmt::TimedSemaphoreImpl

Forward declaration of platform-specific timed semaphore implementation.

Synopsis

Declared in <bslmt_timedsemaphoreimpl_pthread.h>

template<class TIMED_SEMAPHORE_POLICY>
class TimedSemaphoreImpl;

Specializations

NameDescription
TimedSemaphoreImpl<Platform::PosixAdvTimedSemaphore> This class implements a timed semaphore in terms of POSIX operations. Note that only certain platforms provide sem_timedwait; on those that do not, TimedSemaphoreImpl<PthreadTimedSemaphore> is used.
TimedSemaphoreImpl<Platform::PthreadTimedSemaphore> This class implements a portable semaphore type for thread synchronization.