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.