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