BloombergLP::bdlcc::StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard::lock

Lock *lock_p and release it when this guard is destroyed.

Synopsis

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

void
lock(StripedUnorderedContainerImpl_LockElement* lock_p);

Description

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.

Parameters

NameDescription
lock_plock to acquire and guard