mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
Kernel: Lock::unlock_if_locked() should never donate to holder.
Since we're not interested in taking the lock if it's already held, there's no need to donate the remainder of our time slice to the holder.
This commit is contained in:
parent
18ef6b111b
commit
6bb0dbe8bf
Notes:
sideshowbarker
2024-07-19 14:40:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6bb0dbe8bf5
@ -113,7 +113,6 @@ inline bool Lock::unlock_if_locked()
|
||||
m_lock = 0;
|
||||
return true;
|
||||
}
|
||||
Scheduler::donate_to(m_holder, m_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user