[#absl-Mutex-ReaderTryLock] = xref:absl.adoc[absl]::xref:absl/Mutex.adoc[Mutex]::ReaderTryLock :relfileprefix: ../../ :mrdocs: Deprecated alias for `try_lock_shared()`. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated, nodiscard]] bool ReaderTryLock(); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value `true` if the mutex was acquired, `false` otherwise. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#