Skip to content

Commit e1862a5

Browse files
committed
---
yaml --- r: 8013 b: refs/heads/snap-stage3 c: b1a090c h: refs/heads/master i: 8011: 0b418a9 v: v3
1 parent fc74998 commit e1862a5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6c632c71c6f86752fb626501d5368070e3e37385
4+
refs/heads/snap-stage3: b1a090c7c4393781a92814431a5d32ffed4e57aa
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/rt/rust_scheduler.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ rust_scheduler::number_of_live_tasks() {
112112
* Delete any dead tasks.
113113
*/
114114
void
115-
rust_scheduler::reap_dead_tasks(int id) {
115+
rust_scheduler::reap_dead_tasks() {
116116
I(this, lock.lock_held_by_current_thread());
117117
if (dead_tasks.length() == 0) {
118118
return;
@@ -157,7 +157,7 @@ rust_scheduler::reap_dead_tasks(int id) {
157157
* Returns NULL if no tasks can be scheduled.
158158
*/
159159
rust_task *
160-
rust_scheduler::schedule_task(int id) {
160+
rust_scheduler::schedule_task() {
161161
I(this, this);
162162
// FIXME: in the face of failing tasks, this is not always right.
163163
// I(this, n_live_tasks() > 0);
@@ -222,15 +222,15 @@ rust_scheduler::start_main_loop() {
222222
DLOG(this, dom, "worker %d, number_of_live_tasks = %d, total = %d",
223223
id, number_of_live_tasks(), kernel->live_tasks);
224224

225-
rust_task *scheduled_task = schedule_task(id);
225+
rust_task *scheduled_task = schedule_task();
226226

227227
if (scheduled_task == NULL) {
228228
log_state();
229229
DLOG(this, task,
230230
"all tasks are blocked, scheduler id %d yielding ...",
231231
id);
232232
lock.timed_wait(10);
233-
reap_dead_tasks(id);
233+
reap_dead_tasks();
234234
DLOG(this, task,
235235
"scheduler %d resuming ...", id);
236236
continue;
@@ -263,7 +263,7 @@ rust_scheduler::start_main_loop() {
263263
scheduled_task->user.rust_sp,
264264
id);
265265

266-
reap_dead_tasks(id);
266+
reap_dead_tasks();
267267
}
268268

269269
A(this, newborn_tasks.is_empty(), "Should have no newborn tasks");

branches/snap-stage3/src/rt/rust_scheduler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ struct rust_scheduler : public kernel_owned<rust_scheduler>,
102102
rust_crate_cache *get_cache();
103103
size_t number_of_live_tasks();
104104

105-
void reap_dead_tasks(int id);
106-
rust_task *schedule_task(int id);
105+
void reap_dead_tasks();
106+
rust_task *schedule_task();
107107

108108
void start_main_loop();
109109

0 commit comments

Comments
 (0)