auto merge of #7856 : brson/rust/no-thread-per-core, r=pcwalton
This doesn't make sense under the new scheduler.
This commit is contained in:
commit
b70c045f38
5 changed files with 1 additions and 28 deletions
|
@ -110,8 +110,6 @@ pub enum SchedMode {
|
|||
/// All tasks run in the same OS thread
|
||||
SingleThreaded,
|
||||
/// Tasks are distributed among available CPUs
|
||||
ThreadPerCore,
|
||||
/// Each task runs in its own OS thread
|
||||
ThreadPerTask,
|
||||
/// Tasks are distributed among a fixed number of OS threads
|
||||
ManualThreads(uint),
|
||||
|
@ -1147,22 +1145,6 @@ fn test_child_doesnt_ref_parent() {
|
|||
task::spawn(child_no(0));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_sched_thread_per_core() {
|
||||
let (port, chan) = comm::stream();
|
||||
|
||||
do spawn_sched(ThreadPerCore) || {
|
||||
unsafe {
|
||||
let cores = rt::rust_num_threads();
|
||||
let reported_threads = rt::rust_sched_threads();
|
||||
assert_eq!(cores as uint, reported_threads as uint);
|
||||
chan.send(());
|
||||
}
|
||||
}
|
||||
|
||||
port.recv();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_spawn_thread_on_demand() {
|
||||
let (port, chan) = comm::stream();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue