qt6-bb10/tests/auto/corelib
Ivan Solovev a8261e327d QPromise: improve documentation snippet
The multi-thread snippet in the documentation, when copied as is,
could actually crash because of the race condition between the main
thread and the thread that generate results for the promise.
This is fixed by explicitly calling QPromise::start().
Actually, the underlying snippet already has this call, it just was
not included in the documentation.

This patch modifies the documentation snippet to include calls to
both QPromise::start() and QPromise::finish().

Fixes: QTBUG-109230
Pick-to: 6.5 6.4 6.2
Change-Id: Ic25f31a6b3b16ba6bc06a0b199289c8c5d50bab6
Reviewed-by: Sona Kurazyan <kurazyan.sona@gmail.com>
2023-01-09 10:03:48 +01:00
..
animation Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
global QTypeInfo: remove further usages of isPointer / isIntegral 2022-12-30 01:51:27 +01:00
io QFileInfo: use currentDateTimeUtc() 2023-01-06 17:57:52 +00:00
itemmodels Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel QMetaType: fix value-initialization in a corner case 2022-12-30 01:51:08 +01:00
mimetypes QFileInfo: use currentDateTimeUtc() 2023-01-06 17:57:52 +00:00
platform CMake: Remove direct qt_android_generate_deployment_settings call 2022-12-15 20:23:28 +01:00
plugin QUuid: add the ability to specify the byte order for 128-bit IDs 2022-12-16 19:29:10 +01:00
serialization QXmlStreamWriter: fix a thinko in doWriteToDevice(QSV) 2022-12-16 22:58:11 +01:00
text Accept U+2212 as minus sign in negative year unit test 2023-01-06 14:51:05 +01:00
thread QPromise: improve documentation snippet 2023-01-09 10:03:48 +01:00
time Deprecate QDateTime methods using plain Qt::TimeSpec 2022-12-10 06:39:33 +01:00
tools QTypeInfo: remove further usages of isPointer / isIntegral 2022-12-30 01:51:27 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00