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

Name

Description

mu

The mutex to lock.

cond

The condition to wait for before locking.

Created with MrDocs