about summary refs log tree commit diff
path: root/library/std/src/sys/unix/thread_local_key.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2022-10-08 20:19:21 +0200
committerjoboet <jonasboettiger@icloud.com>2022-10-08 20:19:21 +0200
commitd4578013541a5c6ae34b62a83e8dcb11fb6d4b05 (patch)
treedf5b4b863f1ec8996dfcecd8ce357fe0af47c3aa /library/std/src/sys/unix/thread_local_key.rs
parentcba4a389b3961a2fd72e01bd6cb0b0e065edaf3d (diff)
downloadrust-d4578013541a5c6ae34b62a83e8dcb11fb6d4b05.tar.gz
rust-d4578013541a5c6ae34b62a83e8dcb11fb6d4b05.zip
std: optimize TLS on Windows
Diffstat (limited to 'library/std/src/sys/unix/thread_local_key.rs')
-rw-r--r--library/std/src/sys/unix/thread_local_key.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/library/std/src/sys/unix/thread_local_key.rs b/library/std/src/sys/unix/thread_local_key.rs
index 2c5b94b1e61..2b2d079ee4d 100644
--- a/library/std/src/sys/unix/thread_local_key.rs
+++ b/library/std/src/sys/unix/thread_local_key.rs
@@ -27,8 +27,3 @@ pub unsafe fn destroy(key: Key) {
     let r = libc::pthread_key_delete(key);
     debug_assert_eq!(r, 0);
 }
-
-#[inline]
-pub fn requires_synchronized_create() -> bool {
-    false
-}