Lockvoker: add handleGridlock and invoke it

This commit is contained in:
2025-09-30 00:32:54 -04:00
parent b7ff100499
commit ed9635582f
2 changed files with 21 additions and 3 deletions
+4 -2
View File
@@ -159,7 +159,8 @@ public:
if (!isDeadlock && !isGridlock)
{ return; }
handleDeadlock(firstFailedQutex);
if (isDeadlock) { handleDeadlock(firstFailedQutex); }
if (isGridlock) { handleGridlock(firstFailedQutex); }
#endif
return;
}
@@ -308,7 +309,8 @@ public:
* @brief Handle a likely deadlock situation by logging debug information
* @param firstFailedQutex The first qutex that failed acquisition
*/
void handleDeadlock(Qutex& firstFailedQutex);
void handleDeadlock(Qutex &firstFailedQutex);
void handleGridlock(Qutex &firstFailedQutex);
#endif
private: