Creates a mutex with static storage duration.
Declared in <absl/synchronization/mutex.h>
constexpr
explicit
Mutex(absl::ConstInitType tag);
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.
| Name | Description |
|---|---|
| tag | A tag that selects this overload. |