std: Remove ThreadPerTask spawn mode. Unimplemented
This commit is contained in:
parent
cb9ee7f5be
commit
85fd75ac47
@ -105,8 +105,6 @@ pub enum SchedMode {
|
||||
PlatformThread,
|
||||
/// All tasks run in the same OS thread
|
||||
SingleThreaded,
|
||||
/// Tasks are distributed among available CPUs
|
||||
ThreadPerTask,
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,7 +85,7 @@ use task::local_data_priv::{local_get, local_set, OldHandle};
|
||||
use task::rt::rust_task;
|
||||
use task::rt;
|
||||
use task::{Failure, PlatformThread, SchedOpts, SingleThreaded};
|
||||
use task::{Success, TaskOpts, TaskResult, ThreadPerTask};
|
||||
use task::{Success, TaskOpts, TaskResult};
|
||||
use task::{ExistingScheduler, SchedulerHandle};
|
||||
use task::unkillable;
|
||||
use to_bytes::IterBytes;
|
||||
@ -811,9 +811,6 @@ fn spawn_raw_oldsched(mut opts: TaskOpts, f: ~fn()) {
|
||||
| ExistingScheduler(*)
|
||||
| PlatformThread => 0u, /* Won't be used */
|
||||
SingleThreaded => 1u,
|
||||
ThreadPerTask => {
|
||||
fail!("ThreadPerTask scheduling mode unimplemented")
|
||||
}
|
||||
};
|
||||
|
||||
unsafe {
|
||||
|
Loading…
Reference in New Issue
Block a user