[#std-shared_lock-0b-mutex] = xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>]::mutex :relfileprefix: ../../ :mrdocs: Returns the managed mutex without releasing ownership. == Synopsis Declared in `<folly/SharedMutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:std/shared_lock-0b/mutex_type.adoc[mutex_type]* mutex() const noexcept; ---- == Return Value The managed mutex, or `nullptr` if none. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#