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

Decouple QThreadStorage from QThreadData

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2
    • Core: Threads
    • None

    Description

      QThreadStorage currenlty uses the tls vector in QThreadData (via an indirection through QThreadStorageData). Given that we mandate the availability of thread_local support, it should be possible to remove the tls member in QThreadData and instead make use of C++ built-in's TLS support.

       

      The advantage of this is that it should reduce the overhead of QThreadStorage in non-QThread threads, as those would no longer have to create the complete QThreadData structure.

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            fabiankosmale Fabian Kosmale
            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