[#AnnotatedMixin-03-try_lock] = xref:AnnotatedMixin-03.adoc[AnnotatedMixin]::try_lock :relfileprefix: ../ :mrdocs: Try to lock the underlying mutex without blocking. == Synopsis Declared in `<sync.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[try_acquire_capability(true)]] bool try_lock(); ---- == Return Value true if the lock was acquired. [.small]#Created with https://www.mrdocs.com[MrDocs]#