[#absl-MutexLock-2constructor-08] = xref:absl.adoc[absl]::xref:absl/MutexLock.adoc[MutexLock]::MutexLock :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<absl/synchronization/mutex.h>` Deleted copy constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/MutexLock/2constructor-0d.adoc[MutexLock](xref:absl/MutexLock.adoc[MutexLock] const& other) = delete; ---- [.small]#xref:absl/MutexLock/2constructor-0d.adoc[_» more..._]# Deleted move constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/MutexLock/2constructor-0e.adoc[MutexLock](xref:absl/MutexLock.adoc[MutexLock]&& other) = delete; ---- [.small]#xref:absl/MutexLock/2constructor-0e.adoc[_» more..._]# Acquires `mu` exclusively for the lifetime of this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/MutexLock/2constructor-06.adoc[MutexLock](xref:absl/Mutex.adoc[Mutex]& mu); ---- [.small]#xref:absl/MutexLock/2constructor-06.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/MutexLock/2constructor-03.adoc[MutexLock](xref:absl/Mutex.adoc[Mutex]* mu); ---- [.small]#xref:absl/MutexLock/2constructor-03.adoc[_» more..._]# Acquires `mu` exclusively once `cond` holds, for the lifetime of this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/MutexLock/2constructor-0f.adoc[MutexLock]( xref:absl/Mutex.adoc[Mutex]& mu, xref:absl/Condition.adoc[Condition] const& cond); ---- [.small]#xref:absl/MutexLock/2constructor-0f.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/MutexLock/2constructor-00.adoc[MutexLock]( xref:absl/Mutex.adoc[Mutex]* mu, xref:absl/Condition.adoc[Condition] const& cond); ---- [.small]#xref:absl/MutexLock/2constructor-00.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]#