Open
Description
Motivation
We have @TaskLocal, a similar @ThreadLocal would be useful at times we need to work with thread local variables. It would make the code both safer, shorter and nicer.
Proposed solution
Implement @ThreadLocal similar to how @TaskLocal is implemented
Alternatives considered
Continue to rely on unsafe pthread APIs (pthread_key_create, pthread_setspecific, pthread_getspecific) to work with thread locals.
Additional information
No response