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

Phase out QThreadStorage

    XMLWordPrintable

Details

    • Epic
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Core: Threads
    • None
    • QThreadStorage

    Description

      QThreadStorage is much harder to use than C++11's thread_local, and with C++17's std::optional, the lazy-initialization aspect of QThreadStorage can also be addressed.

      Q: Why do we still need QThreadStorage?
      A: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83562 is not in GCC 9 and 10.

      Attachments

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes