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

Blocks until the counter reaches zero&period;

== Synopsis

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

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

== Description

Blocks until the counter reaches zero&period; This function may be called at most once&period; On return, `DecrementCount()` will have been called &quot;initial&lowbar;count&quot; times and the blocking counter may be destroyed&period;

Memory ordering&colon; For any threads X and Y, any action taken by X before X calls `DecrementCount()` is visible to Y after Y returns from `Wait()`&period;


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