[#absl-Barrier-2constructor-0bb]
= xref:absl.adoc[absl]::xref:absl/Barrier.adoc[Barrier]::Barrier
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Deleted copy constructor&semi; `Barrier` is not copyable&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Barrier/2constructor-0f.adoc[Barrier](xref:absl/Barrier.adoc[Barrier] const& other) = delete;
----

[.small]#xref:absl/Barrier/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Constructs a barrier for a fixed number of participating threads&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/Barrier/2constructor-0b9.adoc[Barrier](int num&lowbar;threads);
----

[.small]#xref:absl/Barrier/2constructor-0b9.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *num&lowbar;threads*
| The number of threads that will participate in the barrier&period;
|===


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