[#std-shared_lock-0b-2constructor-0a] = xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>]::shared_lock :relfileprefix: ../../ :mrdocs: Constructs a lock that manages a mutex without acquiring it. == Synopsis Declared in `<folly/SharedMutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- shared_lock( xref:std/shared_lock-0b/mutex_type.adoc[mutex_type]& mutex, std::defer_lock_t unused) noexcept; ---- == Parameters [cols="1,4"] |=== | Name| Description | *mutex* | Mutex to associate with this lock. | *unused* | Tag selecting deferred locking. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#