[#BloombergLP-bslmt-Latch-2constructor-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Latch.adoc[Latch]::Latch :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bslmt_latch.h>` Create a latch that synchronizes on the specified `count` events. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslmt/Latch/2constructor-08.adoc[Latch]( int count, xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType = bsls::SystemClockType::e_REALTIME); ---- [.small]#xref:BloombergLP/bslmt/Latch/2constructor-08.adoc[_» more..._]# Create a latch for `count` events using the monotonic clock. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/Latch/2constructor-01.adoc[Latch]( int count, std::chrono::steady_clock const& steadyClock); ---- [.small]#xref:BloombergLP/bslmt/Latch/2constructor-01.adoc[_» more..._]# Create a latch for `count` events using the realtime clock. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/Latch/2constructor-06.adoc[Latch]( int count, std::chrono::system_clock const& systemClock); ---- [.small]#xref:BloombergLP/bslmt/Latch/2constructor-06.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *count* | number of events required to release the latch | *clockType* | clock used to interpret `timedWait` timeouts | *steadyClock* | tag selecting the system monotonic clock | *systemClock* | tag selecting the system realtime clock |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#