This class implements a portable timed semaphore type for thread synchronization. It forwards all requests to an appropriate platform-specific implementation.
Declared in <bslmt_timedsemaphore.h>
class TimedSemaphore;
| Name | Description |
|---|---|
Unnamed enum | Status codes for timed wait operations. |
| Name | Description |
|---|---|
TimedSemaphore [constructor] | Constructors |
~TimedSemaphore [destructor] | Destroy this timed semaphore. |
clockType | Return the clock type used for timeouts. |
post | post overloads |
timedWait | timedWait overloads |
tryWait | If the count of this timed semaphore is positive, atomically decrement the count and return 0; otherwise, return a non-zero value with no effect on the count. |
wait | Block until the count of this timed semaphore is a positive value, then atomically decrement the count and return. |