[#absl-ReaderMutexLock-2constructor-05] = xref:absl.adoc[absl]::xref:absl/ReaderMutexLock.adoc[ReaderMutexLock]::ReaderMutexLock :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<absl/synchronization/mutex.h>` Deleted copy constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/ReaderMutexLock/2constructor-0a3.adoc[ReaderMutexLock](xref:absl/ReaderMutexLock.adoc[ReaderMutexLock] const& other) = delete; ---- [.small]#xref:absl/ReaderMutexLock/2constructor-0a3.adoc[_» more..._]# Deleted move constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/ReaderMutexLock/2constructor-0d.adoc[ReaderMutexLock](xref:absl/ReaderMutexLock.adoc[ReaderMutexLock]&& other) = delete; ---- [.small]#xref:absl/ReaderMutexLock/2constructor-0d.adoc[_» more..._]# Acquires a shared lock on `mu` for the lifetime of this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/ReaderMutexLock/2constructor-0a6.adoc[ReaderMutexLock](xref:absl/Mutex.adoc[Mutex]& mu); ---- [.small]#xref:absl/ReaderMutexLock/2constructor-0a6.adoc[_» more..._]# Deprecated pointer overload; acquires a shared lock on `*mu`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use the constructor that takes a reference instead")]] explicit xref:absl/ReaderMutexLock/2constructor-00.adoc[ReaderMutexLock](xref:absl/Mutex.adoc[Mutex]* mu); ---- [.small]#xref:absl/ReaderMutexLock/2constructor-00.adoc[_» more..._]# Acquires a shared lock on `mu` once `cond` holds. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/ReaderMutexLock/2constructor-094.adoc[ReaderMutexLock]( xref:absl/Mutex.adoc[Mutex]& mu, xref:absl/Condition.adoc[Condition] const& cond); ---- [.small]#xref:absl/ReaderMutexLock/2constructor-094.adoc[_» more..._]# Deprecated pointer overload; acquires a shared lock on `*mu` once `cond` holds. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use the constructor that takes a reference instead")]] explicit xref:absl/ReaderMutexLock/2constructor-092.adoc[ReaderMutexLock]( xref:absl/Mutex.adoc[Mutex]* mu, xref:absl/Condition.adoc[Condition] const& cond); ---- [.small]#xref:absl/ReaderMutexLock/2constructor-092.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *mu* | The mutex to lock. | *cond* | The condition to wait for before locking. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#