Lock both lock1 and lock2, the one in the lower memory location first.
lock1
lock2
Declared in <bdlcc_skiplist.h>
<bdlcc_skiplist.h>
SkipList_DoubleLockGuard( bslmt::Mutex* lock1, bslmt::Mutex* lock2);