Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
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).
This ticket is about these hits:
qtbase/src/platformsupport/kmsconvenience/qkmsdevice_p.h:#include <QtCore/QThreadStorage> qtbase/src/platformsupport/kmsconvenience/qkmsdevice_p.h: QThreadStorage<AtomicReqs> m_atomicReqs; qtbase/src/plugins/platforms/ios/optional/nsphotolibrarysupport/qiosfileengineassetslibrary.mm:static QThreadStorage<QString> g_iteratorCurrentUrl; qtbase/src/plugins/platforms/ios/optional/nsphotolibrarysupport/qiosfileengineassetslibrary.mm:static QThreadStorage<QPointer<QIOSAssetData> > g_assetDataCache; qtbase/src/plugins/tracing/qctflib_p.h: QThreadStorage<Channel> m_threadData;
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