[#absl-BlockingCounter-DecrementCount]
= xref:absl.adoc[absl]::xref:absl/BlockingCounter.adoc[BlockingCounter]::DecrementCount
:relfileprefix: ../../
:mrdocs:

Decrements the counter by one&period;

== Synopsis

Declared in `&lt;absl&sol;synchronization&sol;blocking&lowbar;counter&period;h&gt;`

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

== Description

Decrements the counter&apos;s &quot;count&quot; by one, and returns &quot;count &equals;&equals; 0&quot;&period; This function requires that &quot;count !&equals; 0&quot; when it is called&period;

Memory ordering&colon; For any threads X and Y, any action taken by X before it calls `DecrementCount()` is visible to thread Y after Y&apos;s call to `DecrementCount()`, provided Y&apos;s call returns `true`&period;

== Return Value

`true` if the counter reached zero as a result of this call&period;


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