absl::MutexLock::MutexLock

Constructors

Synopses

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...

Parameters

NameDescription
muThe mutex to lock.
condThe condition to wait for before locking.