redesigned the pinning to pin deal with things on dequeue, not on enqueue

This commit is contained in:
toddaaro
2013-06-14 12:17:56 -07:00
parent 4224fc7aad
commit d1ec8b5fb8
6 changed files with 390 additions and 210 deletions

View File

@@ -578,7 +578,7 @@ fn spawn_raw_newsched(_opts: TaskOpts, f: ~fn()) {
let mut sched = Local::take::<Scheduler>();
let task = ~Coroutine::new(&mut sched.stack_pool, f);
sched.schedule_new_task(task);
sched.schedule_task(task);
}
fn spawn_raw_oldsched(mut opts: TaskOpts, f: ~fn()) {