[#BloombergLP-bdlcc-StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard-lock]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard.adoc[StripedUnorderedContainerImpl&lowbar;ArrayOfLocksWriteGuard]::lock
:relfileprefix: ../../../
:mrdocs:

Lock `&ast;lock&lowbar;p` and release it when this guard is destroyed&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;stripedunorderedcontainerimpl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
lock(xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_LockElement.adoc[StripedUnorderedContainerImpl&lowbar;LockElement]* lock&lowbar;p);
----

== Description

The behavior is undefined unless `lock&lowbar;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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lock&lowbar;p*
| lock to acquire and guard
|===


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