absl::Mutex::LockWhen

Blocks until cond is true and the Mutex can be acquired, then atomically acquires it exclusively.

Synopsis

Declared in <absl/synchronization/mutex.h>

void
LockWhen(Condition const& cond);

Parameters

NameDescription
condThe condition to wait for.