Add missing cpu state check sys_spu_thread_receive_event
This commit is contained in:
@@ -2812,6 +2812,11 @@ bool spu_thread::stop_and_signal(u32 code)
|
||||
|
||||
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)
|
||||
{
|
||||
// Try again
|
||||
|
||||
Reference in New Issue
Block a user