This class provides a full specialization of SemaphoreImpl for pthreads. The implementation provided here defines an efficient proxy for the sem_t pthread type, and related operations.
Synopsis
Declared in <bslmt_semaphoreimpl_pthread.h>
template<>
class SemaphoreImpl<Platform::PosixSemaphore>;
Member Functions
Name |
Description |
|
Create a semaphore initialized to the specified |
|
Destroy a semaphore |
Return the current value of this semaphore. |
|
|
|
Decrement the count of this semaphore if it is positive and return 0. Return a non‐zero value otherwise. |
|
Block until the count of this semaphore is a positive value and atomically decrement it. |
Created with MrDocs