[#BloombergLP-bslmt-Semaphore-wait]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Semaphore.adoc[Semaphore]::wait
:relfileprefix: ../../../
:mrdocs:

Block until the count of this semaphore is a positive value, then atomically decrement the count and return&period;

== Synopsis

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

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


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