mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-16 06:30:41 +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
|
@ -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…
Reference in a new issue