diff --git a/Core/Lock.cpp b/Core/Lock.cpp index 461c0f4..e6f9db7 100644 --- a/Core/Lock.cpp +++ b/Core/Lock.cpp @@ -2,10 +2,13 @@ #include +static unsigned long DeadLocks = 0; + extern "C" void DeadLockHandler(LockClass *Lock) { - warn("Potential deadlock in lock '%s' held by '%s'", + warn("Potential deadlock in lock '%s' held by '%s' (%ld)", Lock->GetLockData()->AttemptingToGet, - Lock->GetLockData()->CurrentHolder); + Lock->GetLockData()->CurrentHolder, + DeadLocks++); // TODO: Print on screen too. -} \ No newline at end of file +}