mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +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
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