[#BloombergLP-bslmt-MutexImpl-06-lock] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/MutexImpl-06.adoc[MutexImpl<Platform::PosixThreads>]::lock :relfileprefix: ../../../ :mrdocs: Acquire a lock on this mutex object. If this object is currently locked, then suspend execution of the current thread until a lock can be acquired. Note that the behavior is undefined if the calling thread already owns the lock on this mutex, and will likely result in a deadlock. == Synopsis Declared in `<bslmt_muteximpl_pthread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void lock(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#