Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a new efficient implementation of thread-local storage #18004

Closed
thestinger opened this issue Oct 13, 2014 · 2 comments
Closed

provide a new efficient implementation of thread-local storage #18004

thestinger opened this issue Oct 13, 2014 · 2 comments
Assignees
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. I-slow Issue: Problems and improvements with respect to performance of generated code.

Comments

@thestinger
Copy link
Contributor

It should be a thin layer on top of #[thread_local] where supported. It can provide an unsafe low-level API and then implement Cell and RefCell semantics on top of that for the safe API.

@thestinger thestinger added A-libs I-slow Issue: Problems and improvements with respect to performance of generated code. labels Oct 13, 2014
@thestinger thestinger self-assigned this Oct 13, 2014
@thestinger
Copy link
Contributor Author

Blocked on #18003 for the fallback path on platforms without a working #[thread_local] and for destructor support on platforms without the building blocks used by C++11.

@thestinger thestinger added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Oct 13, 2014
@alexcrichton
Copy link
Member

Landed in #19094

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. I-slow Issue: Problems and improvements with respect to performance of generated code.
Projects
None yet
Development

No branches or pull requests

2 participants