Give tasks useful names. #2891

This commit is contained in:
Ben Blum
2013-07-30 19:20:59 -04:00
parent 389aba0952
commit 2e6dc161b6
5 changed files with 82 additions and 12 deletions

View File

@@ -726,6 +726,8 @@ fn spawn_raw_newsched(mut opts: TaskOpts, f: ~fn()) {
task.death.on_exit = Some(on_exit);
}
task.name = opts.name.take();
rtdebug!("spawn about to take scheduler");
let sched = Local::take::<Scheduler>();