diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-03-21 18:09:48 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-04-24 20:32:35 +0000 |
commit | 47f5c21e1b48fcbed6644fb74e7e5df8bb2414b7 (patch) | |
tree | b6a9bda1ab63f17d178b66d1f7121fd7f1abcdac /src/plugins/platforms/windows/uiautomation/qwindowsuiatableitemprovider.h | |
parent | d6c7b0c2bcb15acb815d02a170d5ff7c57470dc1 (diff) |
QSignalSpy: pull makeArgs() out of ctor critical section
First store the result in a temporary, and, in the critical section,
only move it into place. This minimizes the amount of code in the
critical section (Amdahl's Law) and also means we don't need to
permanently drop the mutex when we call unbounded code using
metacall(). That, in turn, makes sure the args member is only ever
seen empty or fully populated.
Since makeArgs() no longer accesses member functions now, we can make
it static.
Task-number: QTBUG-123544
Change-Id: If19db53f85d7c9eb18d4fb2c61e1aa3d4b9c2e00
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/plugins/platforms/windows/uiautomation/qwindowsuiatableitemprovider.h')
0 files changed, 0 insertions, 0 deletions