rust/src/libstd/thread
Alex Crichton cd74364e5d std: Use cfg(target_thread_local) in thread_local!
This transitions the standard library's `thread_local!` macro to use the
freshly-added and gated `#[cfg(target_thread_local)]` attribute. This greatly
simplifies the `#[cfg]` logic in play here, but requires that the standard
library expose both the OS and ELF TLS implementation modules as unstable
implementation details.

The implementation details were shuffled around a bit but end up generally
compiling to the same thing.

Closes #26581 (this supersedes the need for the option)
Closes #27057 (this also starts ignoring the option)
2015-12-21 22:05:37 -08:00
..
local.rs std: Use cfg(target_thread_local) in thread_local! 2015-12-21 22:05:37 -08:00
mod.rs std: Use cfg(target_thread_local) in thread_local! 2015-12-21 22:05:37 -08:00
scoped_tls.rs Add missing annotations and some tests 2015-11-18 01:24:21 +03:00