absl::Mutex::try_lock_shared

Tries to acquire this Mutex for shared access without blocking.

Synopsis

Declared in <absl/synchronization/mutex.h>

[[nodiscard]]
bool
try_lock_shared();

Return Value

true if the mutex was acquired, false otherwise.

NOTE

The return value should not be discarded.