From 23be3f4885688e5e0011005e2295c75168854c0a Mon Sep 17 00:00:00 2001 From: Fenrir Date: Sun, 21 Jan 2018 14:06:28 -0700 Subject: Recreate ctr-std from latest nightly --- ctr-std/src/sys/unix/thread_local.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ctr-std/src/sys/unix/thread_local.rs') diff --git a/ctr-std/src/sys/unix/thread_local.rs b/ctr-std/src/sys/unix/thread_local.rs index abdd9ac..3cb3523 100644 --- a/ctr-std/src/sys/unix/thread_local.rs +++ b/ctr-std/src/sys/unix/thread_local.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// Borrowed from /sys/redox/thread_local.rs + #![allow(dead_code)] // not used on all platforms use collections::BTreeMap; @@ -64,3 +66,8 @@ pub unsafe fn set(key: Key, value: *mut u8) { pub unsafe fn destroy(key: Key) { keys().remove(&key); } + +#[inline] +pub fn requires_synchronized_create() -> bool { + false +} -- cgit v1.2.3