absl::MutexLock::MutexLock

Acquires mu exclusively once cond holds, for the lifetime of this object.

Synopsis

Declared in <absl/synchronization/mutex.h>

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

Parameters

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