[#absl-ReleasableMutexLock-2constructor-0e] = xref:absl.adoc[absl]::xref:absl/ReleasableMutexLock.adoc[ReleasableMutexLock]::ReleasableMutexLock :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<absl/synchronization/mutex.h>` Acquires `mu` exclusively for the lifetime of this object. [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..._]# Deprecated pointer overload; acquires `*mu` exclusively. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use the constructor that takes a reference instead")]] explicit xref:absl/ReleasableMutexLock/2constructor-08.adoc[ReleasableMutexLock](xref:absl/Mutex.adoc[Mutex]* mu); ---- [.small]#xref:absl/ReleasableMutexLock/2constructor-08.adoc[_» more..._]# Acquires `mu` exclusively once `cond` holds. [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..._]# Deprecated pointer overload; acquires `*mu` exclusively once `cond` holds. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use the constructor that takes a reference instead")]] 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..._]# == 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]#