[#absl-ReleasableMutexLock-2constructor-0e]
= xref:absl.adoc[absl]::xref:absl/ReleasableMutexLock.adoc[ReleasableMutexLock]::ReleasableMutexLock
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Acquires `mu` exclusively for the lifetime of this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/ReleasableMutexLock/2constructor-09.adoc[ReleasableMutexLock](xref:absl/Mutex.adoc[Mutex]& mu);
----

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

Deprecated pointer overload&semi; acquires `&ast;mu` exclusively&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/ReleasableMutexLock/2constructor-08.adoc[ReleasableMutexLock](xref:absl/Mutex.adoc[Mutex]* mu);
----

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

Acquires `mu` exclusively once `cond` holds&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/ReleasableMutexLock/2constructor-0a.adoc[ReleasableMutexLock](
    xref:absl/Mutex.adoc[Mutex]& mu,
    xref:absl/Condition.adoc[Condition] const& cond);
----

[.small]#xref:absl/ReleasableMutexLock/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Deprecated pointer overload&semi; acquires `&ast;mu` exclusively 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/ReleasableMutexLock/2constructor-0f.adoc[ReleasableMutexLock](
    xref:absl/Mutex.adoc[Mutex]* mu,
    xref:absl/Condition.adoc[Condition] const& cond);
----

[.small]#xref:absl/ReleasableMutexLock/2constructor-0f.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]#
