Constructors

Synopses

Declared in <absl/synchronization/mutex.h>

Acquires mu exclusively for the lifetime of this object.

explicit
ReleasableMutexLock(Mutex& mu);

Deprecated pointer overload; acquires *mu exclusively.

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

Acquires mu exclusively once cond holds.

explicit
ReleasableMutexLock(
    Mutex& mu,
    Condition const& cond);

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);

Parameters

Name

Description

mu

The mutex to lock.

cond

The condition to wait for before locking.

Created with MrDocs