summary refs log tree commit diff
path: root/src/libstd/rt/mod.rs
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-11-24 17:59:15 -0800
committerAaron Turon <aturon@mozilla.com>2014-12-18 23:31:51 -0800
commit84cb6cd9386ab01ba59f8ed98d698f9af74e65fe (patch)
treeec382494b3e6e7c678540aaecb966a3c8d19ae4f /src/libstd/rt/mod.rs
parentcac133c9a86a4687755aeb44908e3fbb2bb35fc2 (diff)
downloadrust-84cb6cd9386ab01ba59f8ed98d698f9af74e65fe.tar.gz
rust-84cb6cd9386ab01ba59f8ed98d698f9af74e65fe.zip
Remove rt::{local, local_data, thread_local_storage}
Diffstat (limited to 'src/libstd/rt/mod.rs')
-rw-r--r--src/libstd/rt/mod.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs
index eff80b5ab2f..8ef7ac43a30 100644
--- a/src/libstd/rt/mod.rs
+++ b/src/libstd/rt/mod.rs
@@ -75,13 +75,15 @@ pub mod mutex;
 pub mod thread;
 pub mod exclusive;
 pub mod util;
+<<<<<<< HEAD
+=======
+pub mod task;
+>>>>>>> Remove rt::{local, local_data, thread_local_storage}
 pub mod unwind;
 
 mod args;
 mod at_exit_imp;
 mod libunwind;
-mod local_ptr;
-mod thread_local_storage;
 
 /// The default error code of the rust runtime if the main task panics instead
 /// of exiting cleanly.
@@ -98,8 +100,7 @@ pub fn init(argc: int, argv: *const *const u8) {
     // Need to propagate the unsafety to `start`.
     unsafe {
         args::init(argc, argv);
-        sys::thread::guard::init();
-        sys::stack_overflow::init();
+        thread::init();
         unwind::register(failure::on_fail);
     }
 }
@@ -203,7 +204,7 @@ pub fn at_exit(f: proc():Send) {
 /// undefined behavior.
 pub unsafe fn cleanup() {
     args::cleanup();
-    sys::stack_overflow::cleanup();
+    thread::cleanup();
 }
 
 // FIXME: these probably shouldn't be public...