mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-08 22:09:21 +00:00
Changed how lock works (now it's assembly spinlock)
This commit is contained in:
11
Core/Lock.cpp
Normal file
11
Core/Lock.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include <lock.hpp>
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
extern "C" void DeadLockHandler(LockClass *Lock)
|
||||
{
|
||||
warn("Potential deadlock in lock '%s' held by '%s'",
|
||||
Lock->GetLockData()->AttemptingToGet,
|
||||
Lock->GetLockData()->CurrentHolder);
|
||||
// TODO: Print on screen too.
|
||||
}
|
Reference in New Issue
Block a user