Constructors
Declared in <absl/synchronization/mutex.h>
Deleted copy constructor.
MutexLock(MutexLock const& other) = delete;
» more...
Deleted move constructor.
MutexLock(MutexLock&& other) = delete;
» more...
Acquires mu exclusively for the lifetime of this object.
explicit
MutexLock(Mutex& mu);
» more...
Deprecated pointer overload; acquires *mu exclusively.
[[deprecated("Use the constructor that takes a reference instead")]]
explicit
MutexLock(Mutex* mu);
» more...
Acquires mu exclusively once cond holds, for the lifetime of this object.
explicit
MutexLock(
Mutex& mu,
Condition const& cond);
» more...
Deprecated pointer overload; acquires *mu exclusively once cond holds.
[[deprecated("Use the constructor that takes a reference instead")]]
explicit
MutexLock(
Mutex* mu,
Condition const& cond);
» more...
| Name | Description |
|---|---|
| mu | The mutex to lock. |
| cond | The condition to wait for before locking. |