Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105467

Impact of C++20 atomics on our code

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Core: Threads
    • None
    • C++20 atomics @ Qt

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes