[#BloombergLP-bslmt-Sluice]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::Sluice
:relfileprefix: ../../
:mrdocs:

This class controls the release of threads from a common synchronization point&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;sluice&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Sluice;
----

== Description

One or more threads may &quot;enter&quot; a `Sluice` object, and then wait to be released&period; Either one waiting thread (via the `signalOne` method), or all waiting threads (via the `signalAll` method), may be signaled for release&period; In any case, `Sluice` provides a guarantee against starvation&period;

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslmt/Sluice/_04enum.adoc[`Unnamed enum`] 
| Status codes for timed wait operations&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslmt/Sluice/2constructor-08e1.adoc[`Sluice`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bslmt/Sluice/2destructor.adoc[`&#126;Sluice`] [.small]#[destructor]#
| Destroy this sluice&period;
| xref:BloombergLP/bslmt/Sluice/clockType.adoc[`clockType`] 
| Return the clock type used for timeouts&period;
| xref:BloombergLP/bslmt/Sluice/enter.adoc[`enter`] 
| Enter this sluice and return a token on which to wait&period;
| xref:BloombergLP/bslmt/Sluice/signalAll.adoc[`signalAll`] 
| Signal all threads that have entered this sluice and have not yet been released&period;
| xref:BloombergLP/bslmt/Sluice/signalOne.adoc[`signalOne`] 
| Signal one thread that has entered this sluice and has not yet been released&period;
| xref:BloombergLP/bslmt/Sluice/timedWait-00.adoc[`timedWait`] 
| Wait for `token` to be signaled, or until `absTime` expires&period;
| xref:BloombergLP/bslmt/Sluice/wait.adoc[`wait`] 
| Wait for the specified `token` to be signaled and release it&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
