Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2
-
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.