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.
Synopsis
Declared in <bslmt_timedsemaphoreimpl_posixadv.h>
template<>
class TimedSemaphoreImpl<Platform::PosixAdvTimedSemaphore>;
Enums
Name |
Description |
The value |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this semaphore object. |
Return the clock type used for timeouts. |
|
|
|
Block until the count of this semaphore is a positive value, or until the specified |
|
Decrement the count of this semaphore if it is positive and return 0. Return a non‐zero value otherwise. |
|
Block until the count is a positive value and atomically decrement it. |
Created with MrDocs