qt6-bb10/tests/auto
Jarek Kobus 63b2cf8a45 QFutureWatcher: Fix race for initial emission of resultReadyAt()
When connecting a QFutureWatcher to the QFuture it will connect to the
output interface, which will queue up events to notify about the current
state. This happens in the thread of the QFutureWatcher.

Since 07d6d31a4c unfortunately the sending
of those events was done outside the lock, meaning the worker-thread
could _also_ send events at the same time, leading to a race on which
events would be sent first.

To fix this we move the emission of the events back into the lock
and because it is now inside the lock again anyway, we will revert
back to posting the callout events immediately, so this patch also
partially reverts 07d6d31a4c

Fixes: QTBUG-119169
Pick-to: 6.7 6.6
Change-Id: If29ab6712a82e7948c0ea4866340b6fac5aba5ef
Reviewed-by: Arno Rehn <a.rehn@menlosystems.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-03-15 11:42:36 +00:00
..
bic/data Add binary compatibility file for 6.6.0 2023-10-17 22:23:42 +03:00
cmake "Simplify" versionless targets 2024-03-12 20:27:42 +01:00
concurrent Correct license for tools files 2024-03-05 12:59:21 +01:00
corelib QFutureWatcher: Fix race for initial emission of resultReadyAt() 2024-03-15 11:42:36 +00:00
dbus Remove extra semi-colons 2024-02-06 20:17:18 +09:00
gui rhi: Add basic support for specifying a view format for a texture 2024-03-12 20:27:42 +01:00
guiapplauncher Turn the "concentriccircles" example into snippets, update screenshot 2023-12-14 20:06:32 +01:00
network tst_QNetworkReply: cleanup changed state from timeout test 2024-03-14 19:01:43 +01:00
opengl tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
other tst_toolsupport: make the i386 case really about i386 2024-03-06 11:09:16 +01:00
printsupport Change license for tests files 2024-02-04 09:56:42 +01:00
shared Change license for tests files 2024-02-04 09:56:42 +01:00
sql CMake: Make a few more auto tests standalone 2024-03-14 01:14:18 +01:00
testlib Port two tests' QAbstractEventDispatcher overrides to V2 2024-03-13 17:29:13 -08:00
tools Long live QT_TECH_PREVIEW_API 2024-02-20 05:01:09 +01:00
wasm CMake: Make a few more auto tests standalone 2024-03-14 01:14:18 +01:00
widgets Reparent QWindow children when reparenting QWidget 2024-03-14 13:50:36 +00:00
xml QtXml: fix leak in QDomText::splitText 2024-03-02 21:22:53 +01:00
CMakeLists.txt wasm: Add auto test corelib/io/qabstractfileengine 2024-02-23 19:11:05 +01:00
network-settings.h Change license for tests files 2024-02-04 09:56:42 +01:00