-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
concurrency runtimeFeature: umbrella label for concurrency runtime featuresFeature: umbrella label for concurrency runtime featuresfeatureA feature request or implementationA feature request or implementation
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
Metadata
Metadata
Assignees
Labels
concurrency runtimeFeature: umbrella label for concurrency runtime featuresFeature: umbrella label for concurrency runtime featuresfeatureA feature request or implementationA feature request or implementation