mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
15 lines
343 B
C++
15 lines
343 B
C++
#include <lock.hpp>
|
|
|
|
#include <debug.h>
|
|
|
|
static unsigned long DeadLocks = 0;
|
|
|
|
extern "C" void DeadLockHandler(LockClass *Lock)
|
|
{
|
|
warn("Potential deadlock in lock '%s' held by '%s' (%ld)",
|
|
Lock->GetLockData()->AttemptingToGet,
|
|
Lock->GetLockData()->CurrentHolder,
|
|
DeadLocks++);
|
|
// TODO: Print on screen too.
|
|
}
|