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

Impact of C++20 atomics on our code

    XMLWordPrintable

    Details

    • Type: Epic
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: Threads
    • Labels:
      None
    • Epic Name:
      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

              Assignee:
              cnn Qt Core & Network
              Reporter:
              mmutz Marc Mutz
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes