Changeset View
Changeset View
Standalone View
Standalone View
src/sync.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | for (const std::pair<void *, CLockLocation> &i : s1) { | ||||
LogPrintf(" (1)"); | LogPrintf(" (1)"); | ||||
} | } | ||||
if (i.first == mismatch.second) { | if (i.first == mismatch.second) { | ||||
LogPrintf(" (2)"); | LogPrintf(" (2)"); | ||||
} | } | ||||
LogPrintf(" %s\n", i.second.ToString()); | LogPrintf(" %s\n", i.second.ToString()); | ||||
} | } | ||||
if (g_debug_lockorder_abort) { | if (g_debug_lockorder_abort) { | ||||
fprintf(stderr, "Assertion failed: detected inconsistent lock order at " | fprintf(stderr, | ||||
"%s:%i, details in debug log.\n", | "Assertion failed: detected inconsistent lock order at %s:%i, " | ||||
"details in debug log.\n", | |||||
__FILE__, __LINE__); | __FILE__, __LINE__); | ||||
abort(); | abort(); | ||||
} | } | ||||
throw std::logic_error("potential deadlock detected"); | throw std::logic_error("potential deadlock detected"); | ||||
} | } | ||||
static void push_lock(void *c, const CLockLocation &locklocation) { | static void push_lock(void *c, const CLockLocation &locklocation) { | ||||
if (!lockstack) { | if (!lockstack) { | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |