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
Name |
Description |
lock1 |
first mutex to lock |
lock2 |
second mutex to lock |
Created with MrDocs