Skip to content

Commit e912aed

Browse files
committed
---
yaml --- r: 13999 b: refs/heads/try c: b1a090c h: refs/heads/master i: 13997: eb618d7 13995: cb7fd90 13991: ee39245 13983: c485367 v: v3
1 parent 97a231e commit e912aed

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 6c632c71c6f86752fb626501d5368070e3e37385
5+
refs/heads/try: b1a090c7c4393781a92814431a5d32ffed4e57aa
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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/try/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)