aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsapi/qjsengine.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-06-01 15:46:25 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-06-04 22:45:23 +0200
commit744e7a55b143bd26cb1d1c19963e23d00d5ba2db (patch)
treec8f6db37286895bd50c522772f74e41551b98215 /src/qml/jsapi/qjsengine.cpp
parentf5fe1d1d4602ed30e5e6a71791200bb43dfc55c4 (diff)
DomUniverse: optimize counter handling in guaranteeUniverse()
Atomic counters are the prime examples for when relaxed atomic loads suffice, so don't use the fully-ordered pre-increment operator, but fetch_add(1, relaxed). Add Q_CONSTINIT and wrap in a lambda as a drive-by. The Q_CONSTINIT will be in dev only; it doesn't exist in 6.3. Pick-to: 6.3 6.2 Change-Id: I0e40bf68ba61e4cfd4094254466e41ae5d659b02 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
Diffstat (limited to 'src/qml/jsapi/qjsengine.cpp')
0 files changed, 0 insertions, 0 deletions