[#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. If this mutex is currently locked, suspend the execution of the current thread until the lock can be acquired. Update the wait and hold time appropriately. The behavior is undefined if the calling thread already owns the lock. == Synopsis Declared in `<bslmt_meteredmutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void lock(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#