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. All subsequent invocations of |
|
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. The returned value can be used to detect a rapid short sequence of |
|
Return the current value ( |
|
Return |
|
|
|
Atomically increase the count of this semaphore by the specified |
|
If the count of this semaphore is positive, reduce the count by the lesser of the count and the specified |
|
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. |
|
|
|
If this semaphore is initially disabled, return |
|
If this semaphore is initially disabled, or becomes disabled while blocking, return |
Created with MrDocs