BloombergLP::bslmt::TimedSemaphoreImpl<Platform::PthreadTimedSemaphore>

This class implements a portable semaphore type for thread synchronization.

Synopsis

Declared in <bslmt_timedsemaphoreimpl_pthread.h>

template<>
class TimedSemaphoreImpl<Platform::PthreadTimedSemaphore>;

Enums

NameDescription
Unnamed enum The value timedWait returns when a timeout occurs.

Member Functions

NameDescription
TimedSemaphoreImpl [constructor]Constructors
~TimedSemaphoreImpl [destructor]Destroy this semaphore object.
clockType Return the clock type used for timeouts.
post post overloads
timedWait Block until this semaphore can be acquired or absTime expires.
tryWait Decrement the count of this semaphore if it is positive and return 0. Return a non-zero value otherwise.
wait Block until the count is a positive value and atomically decrement it.