Skip to content

Commit b1a090c

Browse files
committed
rt: Remove unused arguments in rust_scheduler
1 parent 6c632c7 commit b1a090c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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");

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)