Reports whether this lock currently owns a shared lock.
Declared in <folly/SharedMutex.h>
<folly/SharedMutex.h>
[[nodiscard]] bool owns_lock() const noexcept;
true if a shared lock is held.
true
The return value should not be discarded.