From 5fda9a4efb20f62c8cffd055f002932144699e9a Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 4 Jun 2020 22:32:56 +0300 Subject: [PATCH] sus_lwcond_signal_all: use protocol specified in lwmutex Trying to fix a nearly impossible corner case. --- rpcs3/Emu/Cell/lv2/sys_lwcond.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_lwcond.cpp b/rpcs3/Emu/Cell/lv2/sys_lwcond.cpp index 1c613b68d8..2882e626d6 100644 --- a/rpcs3/Emu/Cell/lv2/sys_lwcond.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_lwcond.cpp @@ -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(cond.sq, cond.protocol)) { cond.waiters--;