diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2019-06-20 02:13:12 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2019-06-20 02:21:10 +0200 |
| commit | 322ac729450351c4f1faf5a96a564f16bfbc6547 (patch) | |
| tree | da5608e339d68e6cad05637da48f8043345d109a /src/corelib/codecs/qsimplecodec.cpp | |
| parent | 08103d3a527d32c782ba9e3f6701e6676ac81a57 (diff) | |
QObject: fix memory order on load/store of signal spy callback set
QSignalSpyCallbackSet is a set of pointers, so when we store a pointer
to it for later dereferencing, we need to use a release fence for the
store and a corresponding acquire on load, lest the two don't
synchronize with each other and we end up with a data race.
Amends a65752c71bd25bbb66bf33d3a82f7901419c5d95.
Change-Id: Ic2983d76237c5c5b00eb2a3575b10beb84d57190
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/codecs/qsimplecodec.cpp')
0 files changed, 0 insertions, 0 deletions
