diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2013-07-22 20:12:59 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2013-07-30 13:19:25 -0400 |
| commit | 9675cd311a405bd5222597a69825733029a2a040 (patch) | |
| tree | 54789d5a5b8d08b0906dcd50df244f13a7865be0 /src/libstd/task | |
| parent | 3f6b4c24ec2234a06632234eaf3014ae0e4adc66 (diff) | |
| download | rust-9675cd311a405bd5222597a69825733029a2a040.tar.gz rust-9675cd311a405bd5222597a69825733029a2a040.zip | |
(cleanup) Fix unimplemented message for kill_all in newsched.
Diffstat (limited to 'src/libstd/task')
| -rw-r--r-- | src/libstd/task/spawn.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 61dcc33c629..baebda496dc 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -512,7 +512,9 @@ impl RuntimeGlue { unsafe fn kill_all_tasks(task: &TaskHandle) { match *task { OldTask(ptr) => rt::rust_task_kill_all(ptr), - NewTask(ref _handle) => rtabort!("unimplemented"), // FIXME(#7544) + // FIXME(#7544): Remove the kill_all feature entirely once the + // oldsched goes away. + NewTask(ref _handle) => rtabort!("can't kill_all in newsched"), } } @@ -573,7 +575,10 @@ impl RuntimeGlue { members: members, descendants: TaskSet::new(), })); - let group = Taskgroup(tasks, AncestorList(None), true, None); + // FIXME(#7544): Remove the is_main flag entirely once + // the newsched goes away. The main taskgroup has no special + // behaviour. + let group = Taskgroup(tasks, AncestorList(None), false, None); (*me).taskgroup = Some(group); (*me).taskgroup.get_ref() } |
