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

Research whether libc++ and MS STL can map std::atomic to non-locked versions for bootstrap

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: Threads
    • Labels:
      None

      Description

      We use more and more std::atomic instead of QAtomic in our code, and QTBUG-103847 proposes to ditch the bootstrap backend of QAtomic in favour of leaving only the C++11 version, so we should research whether there's a way to restore the QAtomic bootstrap optimisation of using int for QAtomicInt.

      At least libstdc++ already optimizes std::atomic<> to lock-less versions if the application is single-threaded. Find out whether there's way to make the MS and the Clang libraries map std::atomic to non-locked versions, too, and, if so, enable that for the build of the bootstrapped tools.

        Attachments

        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