mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Kernel: Unblock big lock waiters correctly
If the regular exclusive and shared lists were empty (which they always should be for the big lock), we were not unblocking any waiters.
This commit is contained in:
parent
cc77c82383
commit
bb02e9a7b9
Notes:
sideshowbarker
2024-07-17 14:14:40 +09:00
Author: https://github.com/gmta
Commit: bb02e9a7b9
Pull-request: https://github.com/SerenityOS/serenity/pull/13587
Reviewed-by: https://github.com/IdanHo
1 changed files with 0 additions and 3 deletions
|
@ -242,9 +242,6 @@ void Mutex::unblock_waiters(Mode previous_mode)
|
|||
VERIFY(m_mode == Mode::Unlocked);
|
||||
|
||||
m_blocked_thread_lists.with([&](auto& lists) {
|
||||
if (lists.exclusive.is_empty() && lists.shared.is_empty())
|
||||
return;
|
||||
|
||||
auto unblock_shared = [&]() {
|
||||
if (lists.shared.is_empty())
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue