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 6, 2019
1 parent 8f8df4a commit 524979a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/Cell/SPUThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ struct spu_channel_4_t
public:
void clear()
{
values.release({});
value3.release(0);
values.release({});
}

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

0 comments on commit 524979a

Please sign in to comment.