This class implements a portable semaphore type for thread synchronization.
Declared in <bslmt_timedsemaphoreimpl_pthread.h>
template<>
class TimedSemaphoreImpl<Platform::PthreadTimedSemaphore>;
| Name | Description |
|---|---|
Unnamed enum | The value timedWait returns when a timeout occurs. |
| Name | Description |
|---|---|
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. |