This class implements a semaphore type, optimized for post, for thread synchronization.
Synopsis
Declared in <bslmt_fastpostsemaphore.h>
class FastPostSemaphore;
Enums
Name |
Description |
Status codes returned by semaphore operations. |
Member Functions
Name |
Description |
|
Constructors |
Return the clock type used for timeouts. |
|
Disable waiting on this semaphore. |
|
Enable waiting on this semaphore. If the semaphore is not disabled, this call has no effect. |
|
Return an odd value if this semaphore is wait disabled, and an even value otherwise. |
|
Return the current value ( |
|
Return |
|
|
|
Atomically increase the count of this semaphore by the specified |
|
Take up to |
|
If the count of this semaphore is positive, reduce the count to 0 and return the original value of the count. Otherwise, do nothing and return 0. |
|
Block until this semaphore can be acquired or |
|
Attempt to decrement this semaphore's count without blocking. |
|
Block until this semaphore's count is positive, then decrement it. |
Created with MrDocs