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

Synopsis

Declared in <bdlcc_skiplist.h>

class SkipList_DoubleLockGuard;

Member Functions

Name

Description

SkipList_DoubleLockGuard [constructor]

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

Created with MrDocs