Skip to content

Commit

Permalink
Make spu_channel_4_t::clear() atomic
Browse files Browse the repository at this point in the history
Clear the last value before zeroing count, fixes a rare race introduced by RPCS3#6917.
  • Loading branch information
elad335 committed Dec 31, 2019
1 parent 080fa88 commit 096ecd7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rpcs3/Emu/Cell/SPUThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ struct spu_channel_4_t
void clear()
{
values.release({});
value3.release(0);
}

// push unconditionally (overwriting latest value), returns true if needs signaling
Expand Down

0 comments on commit 096ecd7

Please sign in to comment.