Details
-
Epic
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
C++20 atomics @ Qt
Description
C++20 beefed up std::atomic quite a bit to the point where it's overtaken QAtomics in features.
The effect on Qt APIs is simply to put even more pressure now on moving from QAtomic to std::atomic (QTBUG-103833).
As for implementation, we need to review our std::atomic use for the issues mentioned in https://wg21.link/P0883 (defined(__cpp_lib_atomic_value_initialization)), incl, since ATOMIC_VAR_INIT is now deprecated, a Qt wrapper to retain compatibility between C++17 and C++20 code without running into C++20 deprecation warnings.
Attachments
Issue Links
- is required for
-
QTBUG-99243 Initiative: Qt and C++20
- Open
-
QTBUG-109361 C++20 is required for the development and building of Qt itself (Phase II)
- Open
-
QTBUG-109363 Long term C++ plans post C++20
- Open
- relates to
-
QTBUG-103833 Remove QAtomic*
- Open
-
QTBUG-108781 Impact of C++20 multi-threading library additions on our code
- Open