mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01: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
@ -3179,6 +3179,12 @@ bool spu_thread::stop_and_signal(u32 code)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (std::exchange(group->set_terminate, true))
|
||||||
|
{
|
||||||
|
// Whoever terminated first decides the error status + cause
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
for (auto& thread : group->threads)
|
for (auto& thread : group->threads)
|
||||||
{
|
{
|
||||||
if (thread && thread.get() != this)
|
if (thread && thread.get() != this)
|
||||||
|
Loading…
Reference in New Issue
Block a user