[#std-shared_lock-0b-try_lock] = xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>]::try_lock :relfileprefix: ../../ :mrdocs: Tries to acquire the managed mutex in shared mode without blocking. == Synopsis Declared in `<folly/SharedMutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool try_lock(); ---- == Return Value `true` if the lock was acquired. [.small]#Created with https://www.mrdocs.com[MrDocs]#