absl::ReleasableMutexLock::ReleasableMutexLock

Constructors

Synopses

Declared in <absl/synchronization/mutex.h>

Acquires mu exclusively for the lifetime of this object.

explicit
ReleasableMutexLock(Mutex& mu);
» more...

Deprecated pointer overload; acquires *mu exclusively.

[[deprecated("Use the constructor that takes a reference instead")]]
explicit
ReleasableMutexLock(Mutex* mu);
» more...

Acquires mu exclusively once cond holds.

explicit
ReleasableMutexLock(
    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
ReleasableMutexLock(
    Mutex* mu,
    Condition const& cond);
» more...

Parameters

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