add language-level support for thread-local data #10310
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.
LLVM has a
thread_local
specifier, for fast thread-local data. This could be exposed with a#[thread_local]
attribute.It will still be necessary for
#[thread_local] static mut
to be unsafe, because a borrow would have a'static
lifetime and freezing wouldn't really be possible...The text was updated successfully, but these errors were encountered: