Knowing whether a variable is thread-local (TLS) sometimes allows to leave-out otherwise necessary synchronization.
Currently it's extremely hacky to infer this, so a isTLS trait would be helpful.
It might also make sense to add the complements isGlobal and isLocal.
http://dpaste.dzfl.pl/ed0b271d434b
Comment #1 by pro.mathias.lang — 2020-08-04T03:45:07Z
*** Issue 12474 has been marked as a duplicate of this issue. ***
Comment #2 by robert.schadek — 2024-12-13T18:36:03Z