[#absl-Mutex-WriterLockWhen] = xref:absl.adoc[absl]::xref:absl/Mutex.adoc[Mutex]::WriterLockWhen :relfileprefix: ../../ :mrdocs: Blocks until `cond` is `true` and the `Mutex` can be acquired, then atomically acquires it in write (exclusive) mode. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void WriterLockWhen(xref:absl/Condition.adoc[Condition] const& cond); ---- == Parameters [cols="1,4"] |=== | Name| Description | *cond* | The condition to wait for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#