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...
LLVM has a
thread_localspecifier, for fast thread-local data. This could be exposed with a#[thread_local]attribute.It will still be necessary for
#[thread_local] static mutto be unsafe, because a borrow would have a'staticlifetime and freezing wouldn't really be possible...