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