Changeset View
Changeset View
Standalone View
Standalone View
src/test/sync_tests.cpp
Show All 31 Lines | |||||
#ifdef DEBUG_LOCKORDER | #ifdef DEBUG_LOCKORDER | ||||
bool prev = g_debug_lockorder_abort; | bool prev = g_debug_lockorder_abort; | ||||
g_debug_lockorder_abort = false; | g_debug_lockorder_abort = false; | ||||
#endif | #endif | ||||
CCriticalSection rmutex1, rmutex2; | CCriticalSection rmutex1, rmutex2; | ||||
TestPotentialDeadLockDetected(rmutex1, rmutex2); | TestPotentialDeadLockDetected(rmutex1, rmutex2); | ||||
CWaitableCriticalSection mutex1, mutex2; | Mutex mutex1, mutex2; | ||||
TestPotentialDeadLockDetected(mutex1, mutex2); | TestPotentialDeadLockDetected(mutex1, mutex2); | ||||
#ifdef DEBUG_LOCKORDER | #ifdef DEBUG_LOCKORDER | ||||
g_debug_lockorder_abort = prev; | g_debug_lockorder_abort = prev; | ||||
#endif | #endif | ||||
} | } | ||||
BOOST_AUTO_TEST_SUITE_END() | BOOST_AUTO_TEST_SUITE_END() |