absl::Mutex::ReaderLockWhen

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

Synopsis

Declared in <absl/synchronization/mutex.h>

void
ReaderLockWhen(Condition const& cond);

Parameters

NameDescription
condThe condition to wait for.