[#BloombergLP-bslmt-Sluice-2constructor-08e1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Sluice.adoc[Sluice]::Sluice
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a sluice&period; Optionally specify a `clockType` indicating the type of the system clock against which the `bsls&colon;&colon;TimeInterval` `absTime` timeouts passed to the `timedWait` method are to be interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component documentation)&period; If `clockType` is not specified then the realtime system clock is used&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/Sluice/2constructor-08ea.adoc[Sluice](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslmt/Sluice/2constructor-08ea.adoc[_» more&period;&period;&period;_]#

Create a sluice&period; Use the specified `clockType` as the clock against which the `bsls&colon;&colon;TimeInterval` `absTime` timeouts passed to the `timedWait` method are to be interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component documentation)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/Sluice/2constructor-0f.adoc[Sluice](
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslmt/Sluice/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Create a sluice&period; Use the monotonic system clock as the clock against which the `absTime` timeouts passed to the `timedWait` methods are interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component&hyphen;level documentation)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/Sluice/2constructor-09.adoc[Sluice](
    std::chrono::steady&lowbar;clock const&,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslmt/Sluice/2constructor-09.adoc[_» more&period;&period;&period;_]#

Create a sluice&period; Use the realtime system clock as the clock against which the `absTime` timeouts passed to the `timedWait` methods are interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component&hyphen;level documentation)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/Sluice/2constructor-0e.adoc[Sluice](
    std::chrono::system&lowbar;clock const&,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslmt/Sluice/2constructor-0e.adoc[_» more&period;&period;&period;_]#


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