Skip to content

Commit a73e95b

Browse files
committed
---
yaml --- r: 140999 b: refs/heads/try2 c: 7f5746f h: refs/heads/master i: 140997: 2b5ed23 140995: 38385c6 140991: 513686d v: v3
1 parent cb2a0b8 commit a73e95b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 56c0b188b66f71f55e2d577ca4a23830a31433e6
8+
refs/heads/try2: 7f5746f6d2bcc048aca5ddfbfdf41497ab874836
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libcore/rt/sched.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub mod local_sched;
3131
/// thread local storage and the running task is owned by the
3232
/// scheduler.
3333
pub struct Scheduler {
34-
priv task_queue: WorkQueue<~Task>,
34+
priv work_queue: WorkQueue<~Task>,
3535
stack_pool: StackPool,
3636
/// The event loop used to drive the scheduler and perform I/O
3737
event_loop: ~EventLoopObject,
@@ -76,7 +76,7 @@ pub impl Scheduler {
7676

7777
Scheduler {
7878
event_loop: event_loop,
79-
task_queue: WorkQueue::new(),
79+
work_queue: WorkQueue::new(),
8080
stack_pool: StackPool::new(),
8181
saved_context: Context::empty(),
8282
current_task: None,
@@ -106,7 +106,7 @@ pub impl Scheduler {
106106
}
107107

108108
let sched = local_sched::take();
109-
assert!(sched.task_queue.is_empty());
109+
assert!(sched.work_queue.is_empty());
110110
return sched;
111111
}
112112

@@ -116,7 +116,7 @@ pub impl Scheduler {
116116
/// to run it later. Always use this instead of pushing to the work queue
117117
/// directly.
118118
fn enqueue_task(&mut self, task: ~Task) {
119-
self.task_queue.push_front(task);
119+
self.work_queue.push_front(task);
120120
self.event_loop.callback(resume_task_from_queue);
121121

122122
fn resume_task_from_queue() {
@@ -133,7 +133,7 @@ pub impl Scheduler {
133133
rtdebug!("looking in work queue for task to schedule");
134134

135135
let mut this = self;
136-
match this.task_queue.pop_front() {
136+
match this.work_queue.pop_front() {
137137
Some(task) => {
138138
rtdebug!("resuming task from work queue");
139139
this.resume_task_immediately(task);

0 commit comments

Comments
 (0)