aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/sys/unix/thread_local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ctr-std/src/sys/unix/thread_local.rs')
-rw-r--r--ctr-std/src/sys/unix/thread_local.rs7
1 files changed, 7 insertions, 0 deletions
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
+}