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

Return the current number of events for which this latch is waiting&period; Note that this method is provided primarily for debugging purposes (i&period;e&period;, its intended use is not as a synchronization mechanism), and can be used only as an upper bound for the current count without other external state information&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
currentCount() const;
----


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