qt6-bb10/tests/auto/corelib/thread
Sona Kurazyan bf3fc5c95c QPromise: run continuation(s) on destruction
If the QFuture is canceled because the associated QPromise has been
destroyed, we still need to run its continuations (i.e. onCanceled
handler, if it's attached), so replaced the cleanContinuation() call
inside ~QPromise() with runContinuation(), which will also take care of
cleaning the continuation.

[ChangeLog][QtCore][Important Behavior Changes] QFuture now runs its
continuations when its associated QPromise has been destroyed.
Previously, if a QFuture was canceled because the associated QPromise
has been destroyed, its continuations were skipped.

Fixes: QTBUG-103992
Pick-to: 6.4 6.3 6.2
Change-Id: Ie05bc760c96c349aade8adb8d2fe5263aff8efac
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-06-22 03:09:24 +02:00
..
qatomicint Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qatomicinteger Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qatomicpointer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfuture Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qfuturesynchronizer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfuturewatcher Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmutex Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmutexlocker Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpromise QPromise: run continuation(s) on destruction 2022-06-22 03:09:24 +02:00
qreadlocker Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qreadwritelock Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qresultstore Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsemaphore Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qthread tst_qthread: Fix compilation under ubsan 2022-06-20 12:12:07 +02:00
qthreadonce Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qthreadpool Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qthreadstorage Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qwaitcondition Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qwritelocker Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Android: activate tst_QThreadStorage 2022-03-25 22:43:49 +01:00