BloombergLP::bdlcc::StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard

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>

class StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard;

Member Functions

NameDescription
StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard [constructor]Create a guard for an array of locks beginning at firstLock_p.
~StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard [destructor]Release all guarded locks and destroy this object.
lock Lock *lock_p and release it when this guard is destroyed.