mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
refactor: Add [[noreturn]]
attribute to *_detected()
functions
This commit is contained in:
parent
08cfe273dd
commit
38f93fe0cb
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ LockData& GetLockData() {
|
||||||
return lock_data;
|
return lock_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void potential_deadlock_detected(const LockPair& mismatch, const LockStack& s1, const LockStack& s2)
|
[[noreturn]] static void potential_deadlock_detected(const LockPair& mismatch, const LockStack& s1, const LockStack& s2)
|
||||||
{
|
{
|
||||||
LogPrintf("POTENTIAL DEADLOCK DETECTED\n");
|
LogPrintf("POTENTIAL DEADLOCK DETECTED\n");
|
||||||
LogPrintf("Previous lock order was:\n");
|
LogPrintf("Previous lock order was:\n");
|
||||||
|
@ -128,7 +128,7 @@ static void potential_deadlock_detected(const LockPair& mismatch, const LockStac
|
||||||
throw std::logic_error(strprintf("potential deadlock detected: %s -> %s -> %s", mutex_b, mutex_a, mutex_b));
|
throw std::logic_error(strprintf("potential deadlock detected: %s -> %s -> %s", mutex_b, mutex_a, mutex_b));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void double_lock_detected(const void* mutex, const LockStack& lock_stack)
|
[[noreturn]] static void double_lock_detected(const void* mutex, const LockStack& lock_stack)
|
||||||
{
|
{
|
||||||
LogPrintf("DOUBLE LOCK DETECTED\n");
|
LogPrintf("DOUBLE LOCK DETECTED\n");
|
||||||
LogPrintf("Lock order:\n");
|
LogPrintf("Lock order:\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue