[#BloombergLP-bslmt-RecursiveMutex-lock] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/RecursiveMutex.adoc[RecursiveMutex]::lock :relfileprefix: ../../../ :mrdocs: Acquire a lock on this object. If this object is currently locked, then suspend execution of the current thread until a lock can be acquired. Succeed immediately if this thread already holds the lock. == Synopsis Declared in `<bslmt_recursivemutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void lock(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#