sus_lwcond_signal_all: use protocol specified in lwmutex

Trying to fix a nearly impossible corner case.
This commit is contained in:
Eladash 2020-06-04 22:32:56 +03:00 committed by Ivan
parent c15b5f1eca
commit 5fda9a4efb

View File

@ -231,7 +231,7 @@ error_code _sys_lwcond_signal_all(ppu_thread& ppu, u32 lwcond_id, u32 lwmutex_id
u32 result = 0;
for (const auto cpu : ::as_rvalue(std::move(cond.sq)))
while (const auto cpu = cond.schedule<ppu_thread>(cond.sq, cond.protocol))
{
cond.waiters--;