summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-05-17 17:19:54 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-05-18 06:37:50 +0200
commitae765813d082d403889d2f98a9c21bd9628cdd58 (patch)
treeb8fcf1735f1b4f652f6023b013767ac616ee4391 /src/plugins/platforms
parentadb4a3beb7a0e02d4e4f96dadaa6587298c4d1f5 (diff)
Optimize atomics in QObject::moveToThread() [2/2]: de-duplicate loads
We don't need to reload d->threadData, as we've already loaded it into a register three lines above, so use the already-loaded value. We don't care whether we might have read a different value the second time around, because that would mean we had a race condition elsewhere in the program (e.g. concurrent moveToThread() calls). Pick-to: 6.3 Change-Id: I29a27ca23302288b5900ac6b45b8690a80e85680 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions