[#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 `<bslmt_sluice.h>` Create a sluice. Optionally specify a `clockType` indicating the type of the system clock against which the `bsls::TimeInterval` `absTime` timeouts passed to the `timedWait` method are to be interpreted (see {Supported Clock‐Types} in the component documentation). If `clockType` is not specified then the realtime system clock is used. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [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..._]# Create a sluice. Use the specified `clockType` as the clock against which the `bsls::TimeInterval` `absTime` timeouts passed to the `timedWait` method are to be interpreted (see {Supported Clock‐Types} in the component documentation). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [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..._]# Create a sluice. Use the monotonic system clock as the clock against which the `absTime` timeouts passed to the `timedWait` methods are interpreted (see {Supported Clock‐Types} in the component‐level documentation). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslmt/Sluice/2constructor-09.adoc[Sluice]( std::chrono::steady_clock const&, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslmt/Sluice/2constructor-09.adoc[_» more..._]# Create a sluice. Use the realtime system clock as the clock against which the `absTime` timeouts passed to the `timedWait` methods are interpreted (see {Supported Clock‐Types} in the component‐level documentation). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslmt/Sluice/2constructor-0e.adoc[Sluice]( std::chrono::system_clock const&, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslmt/Sluice/2constructor-0e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#