[#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&period; If this object is currently locked, then suspend execution of the current thread until a lock can be acquired&period; Succeed immediately if this thread already holds the lock&period;

== Synopsis

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

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


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