mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00: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
1 changed files with 0 additions and 1 deletions
|
@ -113,7 +113,6 @@ inline bool Lock::unlock_if_locked()
|
|||
m_lock = 0;
|
||||
return true;
|
||||
}
|
||||
Scheduler::donate_to(m_holder, m_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue