BloombergLP::bdlcc::SkipList_DoubleLockGuard::SkipList_DoubleLockGuard

Lock both lock1 and lock2 in address order.

Synopsis

Declared in <bdlcc_skiplist.h>

SkipList_DoubleLockGuard(
    bslmt::Mutex* lock1,
    bslmt::Mutex* lock2);

Description

Lock both lock1 and lock2, the one in the lower memory location first.

Parameters

NameDescription
lock1first mutex to lock
lock2second mutex to lock