mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Fix HLE sys_lwcond_signal_to
This commit is contained in:
parent
657af10361
commit
d1527710f9
1 changed files with 6 additions and 1 deletions
|
@ -195,7 +195,12 @@ error_code sys_lwcond_signal_to(ppu_thread& ppu, vm::ptr<sys_lwcond_t> lwcond, u
|
||||||
|
|
||||||
if (g_cfg.core.hle_lwmutex)
|
if (g_cfg.core.hle_lwmutex)
|
||||||
{
|
{
|
||||||
return sys_cond_signal_to(ppu, lwcond->lwcond_queue, ppu_thread_id);
|
if (ppu_thread_id == u32{umax})
|
||||||
|
{
|
||||||
|
return sys_cond_signal(ppu, lwcond->lwcond_queue);
|
||||||
|
}
|
||||||
|
|
||||||
|
return sys_cond_signal_to(ppu, lwcond->lwcond_queue, static_cast<u32>(ppu_thread_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
const vm::ptr<sys_lwmutex_t> lwmutex = lwcond->lwmutex;
|
const vm::ptr<sys_lwmutex_t> lwmutex = lwcond->lwmutex;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue