mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 07:24:37 +00:00
Show a number when printing a potential deadlock
This commit is contained in:
parent
59f4470fb4
commit
f3cfc623d8
@ -2,10 +2,13 @@
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
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.
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user