std: Remove ThreadPerTask spawn mode. Unimplemented

This commit is contained in:
Brian Anderson
2013-07-29 11:49:33 -07:00
parent cb9ee7f5be
commit 85fd75ac47
2 changed files with 1 additions and 6 deletions

View File

@@ -105,8 +105,6 @@ pub enum SchedMode {
PlatformThread, PlatformThread,
/// All tasks run in the same OS thread /// All tasks run in the same OS thread
SingleThreaded, SingleThreaded,
/// Tasks are distributed among available CPUs
ThreadPerTask,
} }
/** /**

View File

@@ -85,7 +85,7 @@ use task::local_data_priv::{local_get, local_set, OldHandle};
use task::rt::rust_task; use task::rt::rust_task;
use task::rt; use task::rt;
use task::{Failure, PlatformThread, SchedOpts, SingleThreaded}; use task::{Failure, PlatformThread, SchedOpts, SingleThreaded};
use task::{Success, TaskOpts, TaskResult, ThreadPerTask}; use task::{Success, TaskOpts, TaskResult};
use task::{ExistingScheduler, SchedulerHandle}; use task::{ExistingScheduler, SchedulerHandle};
use task::unkillable; use task::unkillable;
use to_bytes::IterBytes; use to_bytes::IterBytes;
@@ -811,9 +811,6 @@ fn spawn_raw_oldsched(mut opts: TaskOpts, f: ~fn()) {
| ExistingScheduler(*) | ExistingScheduler(*)
| PlatformThread => 0u, /* Won't be used */ | PlatformThread => 0u, /* Won't be used */
SingleThreaded => 1u, SingleThreaded => 1u,
ThreadPerTask => {
fail!("ThreadPerTask scheduling mode unimplemented")
}
}; };
unsafe { unsafe {