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

Constructs a lock and acquires the mutex in shared mode.

Synopsis

Declared in <folly/SharedMutex.h>

[[nodiscard]]
explicit
shared_lock(mutex_type& mutex);

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
mutexMutex to lock.