[#absl-Mutex-2constructor-01]
= xref:absl.adoc[absl]::xref:absl/Mutex.adoc[Mutex]::Mutex
:relfileprefix: ../../
:mrdocs:

Creates a mutex with static storage duration&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
Mutex(xref:absl/ConstInitType.adoc[absl::ConstInitType] tag);
----

== Description

A global variable constructed this way avoids the lifetime issues that can occur on program startup and shutdown&period; For Mutexes allocated on the heap and stack, instead use the default constructor&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tag*
| A tag that selects this overload&period;
|===


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