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.

Created with MrDocs