Lockvoker: add handleGridlock and invoke it
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user