[#BloombergLP-bslmt-FastPostSemaphoreImpl-takeAll]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/FastPostSemaphoreImpl.adoc[FastPostSemaphoreImpl]::takeAll
:relfileprefix: ../../../
:mrdocs:

If the count of this semaphore is positive, reduce the count to 0 and return the original value of the count&period; Otherwise, do nothing and return 0&period;

== Synopsis

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

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

== Return Value

original count if positive, otherwise 0


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