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

Reports whether this lock currently owns a shared lock.

Synopsis

Declared in <folly/SharedMutex.h>

[[nodiscard]]
bool
owns_lock() const noexcept;

Return Value

true if a shared lock is held.

NOTE

The return value should not be discarded.