mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
sys_spu: Fix sys_spu_thread_group_terminate vs sys_spu_thread_group_exit race on values
This commit is contained in:
parent
91d06a9729
commit
54dd9f4eae
1 changed files with 6 additions and 0 deletions
|
@ -3179,6 +3179,12 @@ bool spu_thread::stop_and_signal(u32 code)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (std::exchange(group->set_terminate, true))
|
||||
{
|
||||
// Whoever terminated first decides the error status + cause
|
||||
return true;
|
||||
}
|
||||
|
||||
for (auto& thread : group->threads)
|
||||
{
|
||||
if (thread && thread.get() != this)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue