Details
-
Epic
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
-
QThreadStorage
-
bd510e9bd (dev), 07a15916c (dev)
Description
QThreadStorage is much harder to use than C++11's thread_local, and with C++17's std::optional, the lazy-initialization aspect of QThreadStorage can also be addressed.
Q: Why do we still need QThreadStorage?
A: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83562 is not in GCC 9 and 10.
Attachments
Issue Links
- is required for
-
QTBUG-132242 [Initiative] Phase out bad Qt API
-
- Open
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-117850 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
627543,7 | QThreadStorage: add a warning suggesting use of thread_local | dev | qt/qtbase | Status: MERGED | +2 | 0 |
627926,2 | QQuickProfiler: don't use QThreadStorage for trivial types | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |