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