std: Remove ThreadPerTask spawn mode. Unimplemented
This commit is contained in:
@@ -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,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user