This class implements a portable semaphore type for thread synchronization.
Synopsis
Declared in <bslmt_timedsemaphoreimpl_pthread.h>
template<>
class TimedSemaphoreImpl<Platform::PthreadTimedSemaphore>;
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