mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +00:00
Add missing cpu state check sys_spu_thread_receive_event
This commit is contained in:
parent
fe7933b0d2
commit
a9c18964b6
@ -2812,6 +2812,11 @@ bool spu_thread::stop_and_signal(u32 code)
|
|||||||
|
|
||||||
std::lock_guard lock(group->mutex);
|
std::lock_guard lock(group->mutex);
|
||||||
|
|
||||||
|
if (is_stopped())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (group->run_state >= SPU_THREAD_GROUP_STATUS_WAITING && group->run_state <= SPU_THREAD_GROUP_STATUS_WAITING_AND_SUSPENDED)
|
if (group->run_state >= SPU_THREAD_GROUP_STATUS_WAITING && group->run_state <= SPU_THREAD_GROUP_STATUS_WAITING_AND_SUSPENDED)
|
||||||
{
|
{
|
||||||
// Try again
|
// Try again
|
||||||
|
Loading…
x
Reference in New Issue
Block a user