[#BloombergLP-bdlcc-StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard-lock] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard.adoc[StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard]::lock :relfileprefix: ../../../ :mrdocs: Lock the specified `*lock_p` and add it to the collection of locks to be unlocked upon destruction of this object. The behavior is undefined unless 'lock_p' is adjacent to the previously locked lock, or is the same lock provided to the constructor if this is the first call to `lock` on this object. == Synopsis Declared in `<bdlcc_stripedunorderedcontainerimpl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void lock(xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_LockElement.adoc[StripedUnorderedContainerImpl_LockElement]* lock_p); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#