mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
Set group status INIT on last thread stopped
this fixes the group status after sys_spu_thread_exit when not joining the spu group
This commit is contained in:
parent
7c74bafaf3
commit
653a4ef0df
2 changed files with 6 additions and 17 deletions
|
@ -486,9 +486,13 @@ void spu_thread::cpu_stop()
|
|||
{
|
||||
if (verify(HERE, group->running--) == 1)
|
||||
{
|
||||
{
|
||||
group->stop_count++;
|
||||
std::lock_guard lock(group->mutex);
|
||||
group->run_state = SPU_THREAD_GROUP_STATUS_INITIALIZED;
|
||||
}
|
||||
|
||||
// Notify on last thread stopped
|
||||
group->stop_count++;
|
||||
group->mutex.lock_unlock();
|
||||
group->cond.notify_all();
|
||||
}
|
||||
}
|
||||
|
@ -2359,7 +2363,6 @@ bool spu_thread::stop_and_signal(u32 code)
|
|||
}
|
||||
}
|
||||
|
||||
group->run_state = SPU_THREAD_GROUP_STATUS_INITIALIZED;
|
||||
group->exit_status = value;
|
||||
group->join_state |= SPU_TGJSF_GROUP_EXIT;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue