@@ -31,7 +31,7 @@ pub mod local_sched;
31
31
/// thread local storage and the running task is owned by the
32
32
/// scheduler.
33
33
pub struct Scheduler {
34
- priv task_queue : WorkQueue < ~Task > ,
34
+ priv work_queue : WorkQueue < ~Task > ,
35
35
stack_pool : StackPool ,
36
36
/// The event loop used to drive the scheduler and perform I/O
37
37
event_loop : ~EventLoopObject ,
@@ -76,7 +76,7 @@ pub impl Scheduler {
76
76
77
77
Scheduler {
78
78
event_loop : event_loop,
79
- task_queue : WorkQueue :: new ( ) ,
79
+ work_queue : WorkQueue :: new ( ) ,
80
80
stack_pool : StackPool :: new ( ) ,
81
81
saved_context : Context :: empty ( ) ,
82
82
current_task : None ,
@@ -106,7 +106,7 @@ pub impl Scheduler {
106
106
}
107
107
108
108
let sched = local_sched:: take ( ) ;
109
- assert ! ( sched. task_queue . is_empty( ) ) ;
109
+ assert ! ( sched. work_queue . is_empty( ) ) ;
110
110
return sched;
111
111
}
112
112
@@ -116,7 +116,7 @@ pub impl Scheduler {
116
116
/// to run it later. Always use this instead of pushing to the work queue
117
117
/// directly.
118
118
fn enqueue_task ( & mut self , task : ~Task ) {
119
- self . task_queue . push_front ( task) ;
119
+ self . work_queue . push_front ( task) ;
120
120
self . event_loop . callback ( resume_task_from_queue) ;
121
121
122
122
fn resume_task_from_queue ( ) {
@@ -133,7 +133,7 @@ pub impl Scheduler {
133
133
rtdebug ! ( "looking in work queue for task to schedule" ) ;
134
134
135
135
let mut this = self ;
136
- match this. task_queue . pop_front ( ) {
136
+ match this. work_queue . pop_front ( ) {
137
137
Some ( task) => {
138
138
rtdebug ! ( "resuming task from work queue" ) ;
139
139
this. resume_task_immediately ( task) ;
0 commit comments