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

Constructs a lock that adopts an already-held shared lock.

Synopsis

Declared in <folly/SharedMutex.h>

[[nodiscard]]
shared_lock(
    mutex_type& mutex,
    std::adopt_lock_t unused);

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
mutexMutex whose shared ownership is adopted.
unusedTag selecting lock adoption.