[#BloombergLP-bslmt-MeteredMutex-lock]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/MeteredMutex.adoc[MeteredMutex]::lock
:relfileprefix: ../../../
:mrdocs:

Acquire the lock on this metered mutex&period; If this mutex is currently locked, suspend the execution of the current thread until the lock can be acquired&period; Update the wait and hold time appropriately&period; The behavior is undefined if the calling thread already owns the lock&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;meteredmutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
lock();
----


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