BloombergLP::bdlcc::SkipList_DoubleLockGuard

RAII guard that locks two mutexes in address order to avoid deadlock.

Synopsis

Declared in <bdlcc_skiplist.h>

class SkipList_DoubleLockGuard;

Member Functions

NameDescription
SkipList_DoubleLockGuard [constructor]Lock both lock1 and lock2, the one in the lower memory location first.