std::shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>::mutex

Returns the managed mutex without releasing ownership.

Synopsis

Declared in <folly/SharedMutex.h>

[[nodiscard]]
mutex_type*
mutex() const noexcept;

Return Value

The managed mutex, or nullptr if none.

NOTE

The return value should not be discarded.