mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Fix broken SpinLock.
The SpinLock was all backwards and didn't actually work. Fixing it exposed how wrong most of the locking here is. I need to come up with a better granularity here.
This commit is contained in:
@@ -247,3 +247,17 @@ void init()
|
||||
}
|
||||
}
|
||||
|
||||
void log_try_lock(const char* where)
|
||||
{
|
||||
kprintf("[%u] >>> locking... (%s)\n", current->pid(), where);
|
||||
}
|
||||
|
||||
void log_locked(const char* where)
|
||||
{
|
||||
kprintf("[%u] >>> locked() in %s\n", current->pid(), where);
|
||||
}
|
||||
|
||||
void log_unlocked(const char* where)
|
||||
{
|
||||
kprintf("[%u] <<< unlocked()\n", current->pid(), where);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user