summary refs log tree commit diff
path: root/src/libcore/task
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-05-19 15:45:39 -0700
committerBrian Anderson <banderson@mozilla.com>2013-05-20 15:21:09 -0700
commit06f1a64bd6e417b73f1b812b860271e86bb42b47 (patch)
treee7d4c337d71cbf38ee1ee2fff78e1dc71bb5d018 /src/libcore/task
parent18fab45aab8622b0bfbcd336d57652bfb2f4f4ac (diff)
downloadrust-06f1a64bd6e417b73f1b812b860271e86bb42b47.tar.gz
rust-06f1a64bd6e417b73f1b812b860271e86bb42b47.zip
core::rt: Convert users of local_sched to Local trait
Diffstat (limited to 'src/libcore/task')
-rw-r--r--src/libcore/task/spawn.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/task/spawn.rs b/src/libcore/task/spawn.rs
index 8d287b5c51f..81e5af5caab 100644
--- a/src/libcore/task/spawn.rs
+++ b/src/libcore/task/spawn.rs
@@ -90,6 +90,7 @@ use task::unkillable;
 use uint;
 use util;
 use unstable::sync::{Exclusive, exclusive};
+use rt::local::Local;
 
 #[cfg(test)] use task::default_task_opts;
 
@@ -575,7 +576,7 @@ pub fn spawn_raw(opts: TaskOpts, f: ~fn()) {
 fn spawn_raw_newsched(_opts: TaskOpts, f: ~fn()) {
     use rt::sched::*;
 
-    let mut sched = local_sched::take();
+    let mut sched = Local::take::<Scheduler>();
     let task = ~Coroutine::new(&mut sched.stack_pool, f);
     sched.schedule_new_task(task);
 }