[#absl-Barrier-Block]
= xref:absl.adoc[absl]::xref:absl/Barrier.adoc[Barrier]::Block
:relfileprefix: ../../
:mrdocs:

Blocks the calling thread until the thread threshold is reached&period;

== Synopsis

Declared in `&lt;absl&sol;synchronization&sol;barrier&period;h&gt;`

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

== Description

Blocks the current thread, and returns only when the `num&lowbar;threads` threshold of threads utilizing this barrier has been reached&period; `Block()` returns `true` for precisely one caller, which may then destroy the barrier&period;

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

== Return Value

`true` for exactly one caller (which may destroy the barrier), and `false` for all other callers&period;


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