Changed how lock works (now it's assembly spinlock)

This commit is contained in:
Alex
2022-10-27 02:44:09 +03:00
parent 6a9217c079
commit 42dc78626a
3 changed files with 125 additions and 18 deletions

11
Core/Lock.cpp Normal file
View 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.
}