qt6-bb10/tests/auto/corelib
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
..
animation Change license for tests files 2024-02-04 09:56:42 +01:00
global CMake: Make a few more auto tests standalone 2024-03-14 01:14:18 +01:00
io QProcess/Unix: fix close() on invalid file descriptor 2024-03-12 22:21:13 -07:00
ipc Change license for tests files 2024-02-04 09:56:42 +01:00
itemmodels Change license for tests files 2024-02-04 09:56:42 +01:00
kernel QAbstractEventDispatcher: port timer uses to the V2 API 2024-03-13 17:29:13 -08:00
mimetypes Change license for tests files 2024-02-04 09:56:42 +01:00
platform Change license for tests files 2024-02-04 09:56:42 +01:00
plugin tst_QFactoryLoader: includemocs 2024-03-12 14:23:42 +01:00
serialization QCborValue: use new comparison helper macros 2024-03-13 20:34:22 +01:00
text Revert "wasm: Disable problematic qlocal test for time being" 2024-03-14 19:11:52 +01:00
thread QFutureWatcher: Fix race for initial emission of resultReadyAt() 2024-03-15 11:42:36 +00:00
time QIcuTimeZonePrivate constructor: save iteration over all zone IDs 2024-02-08 15:40:03 +01:00
tools CMake: Make a few more auto tests standalone 2024-03-14 01:14:18 +01:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00