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

If this semaphore is initially disabled, or becomes disabled while blocking, return `e&lowbar;DISABLED` with no effect on the count&period; Otherwise, block until the count of this semaphore is a positive value, return 0 and atomically decrement the count&period; Return `e&lowbar;FAILED` if an error occurs&period;

== Synopsis

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

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


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