diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-03-15 18:01:48 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-03-15 18:01:48 +0100 |
| commit | 53235d2abb881876dd4ec8119c6a31da53d328a4 (patch) | |
| tree | ecd68f4f8df93acd45ae6eb56cd16ba1ecf03408 /example/std_example.rs | |
| parent | a47896d6e4cbba3afac84984418a71e0b41d2d60 (diff) | |
| download | rust-53235d2abb881876dd4ec8119c6a31da53d328a4.tar.gz rust-53235d2abb881876dd4ec8119c6a31da53d328a4.zip | |
Enable thread test in std_example
Turns out libstd doesn't use #[thread_local] on Windows at all
Diffstat (limited to 'example/std_example.rs')
| -rw-r--r-- | example/std_example.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index 221b512e3bd..015bbdfed46 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -16,8 +16,7 @@ fn main() { let mut stderr = stderr.lock(); // FIXME support lazy jit when multi threading - // FIXME support TLS on windows - #[cfg(not(any(lazy_jit, windows)))] + #[cfg(not(lazy_jit))] std::thread::spawn(move || { println!("Hello from another thread!"); }); |
