[#absl-WriterMutexLock-2constructor-02]
= xref:absl.adoc[absl]::xref:absl/WriterMutexLock.adoc[WriterMutexLock]::WriterMutexLock
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mu*
| The mutex to lock&period;
|===


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