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

Decrement the event count by 1 and release waiters if it reaches 0&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
arrive();
----

== Description

Decrement the number of events that this latch is waiting for by 1, and if the resulting number of events is 0 release any waiting threads&period; The behavior is undefined unless the sum of all events that have arrived at this latch does not exceed the count with which it was initialized&period; Note that the initial count of events is supplied at construction&period;


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