[#absl-ReaderMutexLock-2constructor-05]
= xref:absl.adoc[absl]::xref:absl/ReaderMutexLock.adoc[ReaderMutexLock]::ReaderMutexLock
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;absl&sol;synchronization&sol;mutex&period;h&gt;`

Deleted copy constructor&period;


[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&period;&period;&period;_]#

Deleted move constructor&period;


[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&period;&period;&period;_]#

Acquires a shared lock on `mu` for the lifetime of this object&period;


[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&period;&period;&period;_]#

Deprecated pointer overload&semi; acquires a shared lock on `&ast;mu`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated(&quot;Use the constructor that takes a reference instead&quot;)&rsqb;&rsqb;
explicit
xref:absl/ReaderMutexLock/2constructor-00.adoc[ReaderMutexLock](xref:absl/Mutex.adoc[Mutex]* mu);
----

[.small]#xref:absl/ReaderMutexLock/2constructor-00.adoc[_» more&period;&period;&period;_]#

Acquires a shared lock on `mu` once `cond` holds&period;


[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&period;&period;&period;_]#

Deprecated pointer overload&semi; acquires a shared lock on `&ast;mu` once `cond` holds&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated(&quot;Use the constructor that takes a reference instead&quot;)&rsqb;&rsqb;
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&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mu*
| The mutex to lock&period;
| *cond*
| The condition to wait for before locking&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
