This class controls the release of threads from a common synchronization point. One or more threads may "enter" a Sluice object, and then wait to be released. Either one waiting thread (via the signalOne method), or all waiting threads (via the signalAll method), may be signaled for release. In any case, Sluice provides a guarantee against starvation.
Synopsis
Declared in <bslmt_sluice.h>
class Sluice;
Enums
Name |
Description |
Status codes for timed wait operations. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this sluice. |
Return the clock type used for timeouts. |
|
Enter this sluice, and return the token on which the calling thread must subsequently wait. The behavior is undefined unless |
|
Signal all threads that have entered this sluice and have not yet been released. |
|
Signal one thread that has entered this sluice and has not yet been released. |
|
|
|
Wait for the specified |
Created with MrDocs