absl::Mutex::WriterLockWhen

Blocks until cond is true and the Mutex can be acquired, then atomically acquires it in write (exclusive) mode.

Synopsis

Declared in <absl/synchronization/mutex.h>

void
WriterLockWhen(Condition const& cond);

Parameters

NameDescription
condThe condition to wait for.