[#BloombergLP-bslmt-Latch-2constructor-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Latch.adoc[Latch]::Latch
:relfileprefix: ../../../
:mrdocs:

Create a latch that will synchronize on the specified `count` number of events, and when `count` events have been recorded will release any waiting threads&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; The behavior is undefined unless `0 &lt;&equals; count`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Latch(
    int count,
    std::chrono::system&lowbar;clock const&);
----


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