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

Impact of C++20 atomics on our code

    XMLWordPrintable

Details

    • Epic
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Core: Threads
    • 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

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

          Activity

            People

              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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes