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

Decouple QThreadStorage from QThreadData

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2
    • Fix Version/s: None
    • Component/s: Core: Threads
    • Labels:
      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

            Assignee:
            cnn Qt Core & Network
            Reporter:
            fabiankosmale Fabian Kosmale
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            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