[#BloombergLP-bdlcc-StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard :relfileprefix: ../../ :mrdocs: This class holds locks on an array of locks, established in sequential order, and unlocks them upon destruction in the RAII pattern. == Synopsis Declared in `<bdlcc_stripedunorderedcontainerimpl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard/2constructor.adoc[`StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard`] [.small]#[constructor]# | Create a guard object 'StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard' to lock and unlock elements in an array beginning with the lock pointed to by the specified 'firstLock'. Note that this lock is _not_ locked on construction. | xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard/2destructor.adoc[`~StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard`] [.small]#[destructor]# | Release all guarded locks and destroy this object. | xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard/lock.adoc[`lock`] | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#