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