Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
None
-
c579277a4 (dev), 8bd163065 (6.9), 625d77949 (tqtc/lts-6.8)
-
Multimedia, weeks 15-16, Multimedia, weeks 18-19
Description
See epic for more information. Use thread_local T if the object construction is constinit (then add Q_CONSTINIT in front, too), otherwise use thread_local std::optional<T> (and also add Q_CONSTINIT).
Acceptance criteria:
- All uses of QThreadStorage are removed from the module.
- QT_NO_QTHREADSTORAGE is defined in .cmake.conf (cf. tasks in https://codereview.qt-project.org/q/topic:Q_FOREACH).
Attachments
Issue Links
- depends on
-
QTBUG-117853 Add QT_NO_QTHREADSTORAGE
-
- Reported
-
- is duplicated by
-
QTBUG-133565 Investigate if thread_local should be used to store thread-local QRhi.
-
- Closed
-