about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/rt/local_sched.rs4
-rw-r--r--src/rt/rust_builtin.cpp14
-rw-r--r--src/rt/rustrt.def.in2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/libcore/rt/local_sched.rs b/src/libcore/rt/local_sched.rs
index ffc19c5b5e4..895354d2218 100644
--- a/src/libcore/rt/local_sched.rs
+++ b/src/libcore/rt/local_sched.rs
@@ -105,7 +105,7 @@ fn tls_key() -> tls::Key {
 
 fn maybe_tls_key() -> Option<tls::Key> {
     unsafe {
-        let key: *mut c_void = rust_get_sched_tls_key();
+        let key: *mut c_void = rust_get_rt_tls_key();
         let key: &mut tls::Key = cast::transmute(key);
         let key = *key;
         // Check that the key has been initialized.
@@ -130,7 +130,7 @@ fn maybe_tls_key() -> Option<tls::Key> {
 
 extern {
     #[fast_ffi]
-    fn rust_get_sched_tls_key() -> *mut c_void;
+    fn rust_get_rt_tls_key() -> *mut c_void;
 }
 
 #[test]
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 39a6f5bfd1b..1a64066b5a9 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -830,14 +830,14 @@ rust_get_rt_env() {
 }
 
 #ifndef _WIN32
-pthread_key_t sched_key = -1;
+pthread_key_t rt_key = -1;
 #else
-DWORD sched_key = -1;
+DWORD rt_key = -1;
 #endif
 
 extern "C" void*
-rust_get_sched_tls_key() {
-    return &sched_key;
+rust_get_rt_tls_key() {
+    return &rt_key;
 }
 
 // Initialize the global state required by the new scheduler
@@ -852,10 +852,10 @@ rust_initialize_global_state() {
     if (!initialized) {
 
 #ifndef _WIN32
-        assert(!pthread_key_create(&sched_key, NULL));
+        assert(!pthread_key_create(&rt_key, NULL));
 #else
-        sched_key = TlsAlloc();
-        assert(sched_key != TLS_OUT_OF_INDEXES);
+        rt_key = TlsAlloc();
+        assert(rt_key != TLS_OUT_OF_INDEXES);
 #endif
 
         initialized = true;
diff --git a/src/rt/rustrt.def.in b/src/rt/rustrt.def.in
index f1ddb17c499..cdc282440b8 100644
--- a/src/rt/rustrt.def.in
+++ b/src/rt/rustrt.def.in
@@ -196,7 +196,7 @@ rust_get_global_data_ptr
 rust_inc_kernel_live_count
 rust_dec_kernel_live_count
 rust_exchange_count
-rust_get_sched_tls_key
+rust_get_rt_tls_key
 swap_registers
 rust_readdir
 rust_opendir