qt5base-lts/tests/auto/corelib/thread
Marc Mutz 3a72496b5c tests: fix some -Wvolatile
C++20 deprecated compound volatile statements such as pre- and
post-increments, to stress that they're not atomic. So instead of

    volatile i;
    ~~~~;
    ++i;

you're now supposed to write

    volatile i;
    ~~~~;
    int j = i; // volatile load
    ++j;
    i = j; // volatile store

which matches more closely what hardware does.

Instead of fixing every use of volatile pre- or post-increment in this
fashion individually, and realising that probably a few more Qt
modules will have the same kind of code patterns in them, write
QtPrivate functions to do the job centrally.

Change-Id: I838097bd484ef2118c071726963f103c080d2ba5
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2021-07-28 17:50:09 +02:00
..
qatomicint Remove the qmake project files 2021-01-07 15:32:28 +01:00
qatomicinteger Remove the qmake project files 2021-01-07 15:32:28 +01:00
qatomicpointer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfuture Don't report results when the results list is empty 2021-07-27 19:57:27 +02:00
qfuturesynchronizer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfuturewatcher Make QFutureWatcher::isFinished() consistent with the watched QFuture 2021-07-23 09:32:54 +02:00
qmutex tests: fix some -Wvolatile 2021-07-28 17:50:09 +02:00
qmutexlocker Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpromise QFuture/QPromise: don't check for is_copy_constructible 2021-05-21 11:08:11 +02:00
qreadlocker Remove the qmake project files 2021-01-07 15:32:28 +01:00
qreadwritelock tests: fix some -Wvolatile 2021-07-28 17:50:09 +02:00
qresultstore Don't report results when the results list is empty 2021-07-27 19:57:27 +02:00
qsemaphore QSemaphore: add <chrono> overload of tryAcquire() 2021-06-30 23:48:21 +02:00
qthread QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
qthreadonce Skip tst_qthreadonce test on QEMU 2021-07-20 16:51:51 +02:00
qthreadpool QThreadPool: obey the docs that say we always use at least 1 thread 2021-04-24 00:37:14 +00:00
qthreadstorage Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qwaitcondition Remove the qmake project files 2021-01-07 15:32:28 +01:00
qwritelocker Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00