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

Constructs a lock that manages a mutex without acquiring it.

Synopsis

Declared in <folly/SharedMutex.h>

shared_lock(
    mutex_type& mutex,
    std::defer_lock_t unused) noexcept;

Parameters

NameDescription
mutexMutex to associate with this lock.
unusedTag selecting deferred locking.