[#absl-Mutex-try_lock_shared] = xref:absl.adoc[absl]::xref:absl/Mutex.adoc[Mutex]::try_lock_shared :relfileprefix: ../../ :mrdocs: Tries to acquire this `Mutex` for shared access without blocking. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool try_lock_shared(); ---- == 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]#