Kernel: Add spin lock assert back. I had accidentally deleted it

This commit is contained in:
Bananymous 2024-02-09 16:58:55 +02:00
parent ed0b1a86aa
commit 5d78cd3016
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ namespace Kernel
void SpinLock::lock()
{
pid_t tid = Scheduler::current_tid();
ASSERT(tid != m_locker);
while (!m_locker.compare_exchange(-1, tid))
Scheduler::get().reschedule();
}