[#absl-Mutex-2constructor-01] = xref:absl.adoc[absl]::xref:absl/Mutex.adoc[Mutex]::Mutex :relfileprefix: ../../ :mrdocs: Creates a mutex with static storage duration. == Synopsis Declared in `<absl/synchronization/mutex.h>` [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. For Mutexes allocated on the heap and stack, instead use the default constructor. == Parameters [cols="1,4"] |=== | Name| Description | *tag* | A tag that selects this overload. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#