[#absl-WriterMutexLock-2constructor-03] = xref:absl.adoc[absl]::xref:absl/WriterMutexLock.adoc[WriterMutexLock]::WriterMutexLock :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<absl/synchronization/mutex.h>` Deleted copy constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/WriterMutexLock/2constructor-06.adoc[WriterMutexLock](xref:absl/WriterMutexLock.adoc[WriterMutexLock] const& other) = delete; ---- [.small]#xref:absl/WriterMutexLock/2constructor-06.adoc[_» more..._]# Deleted move constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/WriterMutexLock/2constructor-0a.adoc[WriterMutexLock](xref:absl/WriterMutexLock.adoc[WriterMutexLock]&& other) = delete; ---- [.small]#xref:absl/WriterMutexLock/2constructor-0a.adoc[_» more..._]# Acquires a write lock on `mu` for the lifetime of this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/WriterMutexLock/2constructor-02.adoc[WriterMutexLock](xref:absl/Mutex.adoc[Mutex]& mu); ---- [.small]#xref:absl/WriterMutexLock/2constructor-02.adoc[_» more..._]# Deprecated pointer overload; acquires a write lock on `*mu`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use the constructor that takes a reference instead")]] explicit xref:absl/WriterMutexLock/2constructor-041.adoc[WriterMutexLock](xref:absl/Mutex.adoc[Mutex]* mu); ---- [.small]#xref:absl/WriterMutexLock/2constructor-041.adoc[_» more..._]# Acquires a write lock on `mu` once `cond` holds. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/WriterMutexLock/2constructor-045.adoc[WriterMutexLock]( xref:absl/Mutex.adoc[Mutex]& mu, xref:absl/Condition.adoc[Condition] const& cond); ---- [.small]#xref:absl/WriterMutexLock/2constructor-045.adoc[_» more..._]# Deprecated pointer overload; acquires a write 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/WriterMutexLock/2constructor-0b.adoc[WriterMutexLock]( xref:absl/Mutex.adoc[Mutex]* mu, xref:absl/Condition.adoc[Condition] const& cond); ---- [.small]#xref:absl/WriterMutexLock/2constructor-0b.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]#