mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +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:
parent
bea106fdb2
commit
e6284a8774
Notes:
sideshowbarker
2024-07-19 18:36:50 +09:00
Author: https://github.com/awesomekling
Commit: e6284a8774
24 changed files with 195 additions and 77 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue