File tree 2 files changed +3
-16
lines changed
2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,9 @@ pub enum SchedMode {
90
90
*
91
91
* * sched_mode - The operating mode of the scheduler
92
92
*
93
- * * foreign_stack_size - The size of the foreign stack, in bytes
94
- *
95
- * Rust code runs on Rust-specific stacks. When Rust code calls foreign
96
- * code (via functions in foreign modules) it switches to a typical, large
97
- * stack appropriate for running code written in languages like C. By
98
- * default these foreign stacks have unspecified size, but with this
99
- * option their size can be precisely specified.
100
93
*/
101
94
pub struct SchedOpts {
102
95
mode : SchedMode ,
103
- foreign_stack_size : Option < uint > ,
104
96
}
105
97
106
98
/**
@@ -418,7 +410,6 @@ pub fn default_task_opts() -> TaskOpts {
418
410
notify_chan : None ,
419
411
sched : SchedOpts {
420
412
mode : DefaultScheduler ,
421
- foreign_stack_size : None
422
413
}
423
414
}
424
415
}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ use local_data;
84
84
use task:: local_data_priv:: { local_get, local_set, OldHandle } ;
85
85
use task:: rt:: rust_task;
86
86
use task:: rt;
87
- use task:: { Failure , SchedOpts } ;
87
+ use task:: { Failure } ;
88
88
use task:: { Success , TaskOpts , TaskResult } ;
89
89
use task:: unkillable;
90
90
use to_bytes:: IterBytes ;
@@ -741,7 +741,7 @@ fn spawn_raw_oldsched(mut opts: TaskOpts, f: ~fn()) {
741
741
// Create child task.
742
742
let new_task = match opts. sched . mode {
743
743
DefaultScheduler => rt:: new_task ( ) ,
744
- _ => new_task_in_sched ( opts . sched )
744
+ _ => new_task_in_sched ( )
745
745
} ;
746
746
assert ! ( !new_task. is_null( ) ) ;
747
747
// Getting killed after here would leak the task.
@@ -799,11 +799,7 @@ fn spawn_raw_oldsched(mut opts: TaskOpts, f: ~fn()) {
799
799
return result;
800
800
}
801
801
802
- fn new_task_in_sched ( opts : SchedOpts ) -> * rust_task {
803
- if opts. foreign_stack_size != None {
804
- fail ! ( "foreign_stack_size scheduler option unimplemented" ) ;
805
- }
806
-
802
+ fn new_task_in_sched ( ) -> * rust_task {
807
803
unsafe {
808
804
let sched_id = rt:: rust_new_sched ( 1 ) ;
809
805
rt:: rust_new_task_in_sched ( sched_id)
You can’t perform that action at this time.
0 commit comments