mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Atomic waiting refactoring (#9208)
* Use atomic waitables instead instead of global thread wait as often as possible. * Add ::is_stopped() and and ::is_paued() which can be used in atomic loops and with atomic wait. (constexpr cpu flags test functions) * Fix notification bug of sys_spu_thread_group_exit/terminate. (old bug, enhanced by #9117) * Function time statistics at Emu.Stop() restored. (instead of current "X syscall failed with 0x00000000 : 0")
This commit is contained in:
parent
cf384795d2
commit
f43260bd58
40 changed files with 375 additions and 234 deletions
|
@ -90,7 +90,7 @@ namespace rsx
|
|||
|
||||
while (rsx->is_paused())
|
||||
{
|
||||
rsx->cpu_wait();
|
||||
rsx->cpu_wait({});
|
||||
}
|
||||
|
||||
// Reset
|
||||
|
@ -107,7 +107,7 @@ namespace rsx
|
|||
}
|
||||
}
|
||||
|
||||
rsx->cpu_wait();
|
||||
rsx->cpu_wait({});
|
||||
}
|
||||
|
||||
rsx->fifo_wake_delay();
|
||||
|
@ -1608,7 +1608,8 @@ namespace rsx
|
|||
{ ppu_cmd::sleep, 0 }
|
||||
});
|
||||
|
||||
thread_ctrl::notify(*rsx->intr_thread);
|
||||
rsx->intr_thread->cmd_notify++;
|
||||
rsx->intr_thread->cmd_notify.notify_one();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue