rust/src/libstd/thread
kennytm 462f63e1bb
Rollup merge of #55597 - alexcrichton:thread-local-inner, r=KodrAus
std: Enable usage of `thread_local!` through imports

The `thread_local!` macro delegated to an internal macro but it didn't
do so in a macros-and-the-module-system compatible fashion, meaning if a
`#![no_std]` crate imported `std` and tried to use `thread_local!` it
would fail due to missing a lookup of an internal macro.

This commit switches the macro to instead use `$crate` to invoke other
macros, ensuring that it'll work when `thread_local!` is imported alone.
2018-11-06 17:08:03 +08:00
..
local.rs Rollup merge of #55597 - alexcrichton:thread-local-inner, r=KodrAus 2018-11-06 17:08:03 +08:00
mod.rs thread::unpark: Avoid notifying with mutex locked. 2018-10-30 22:54:35 +00:00