X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=schedule.cc;fp=schedule.cc;h=136f4622fb3ff1d16aa59a8b9d41a6c62df2f930;hp=62ba8fb3ff0ee631d960649286142d0608560135;hb=5d806b4bc80d6df106c78f47b336ef9d2aad7f3d;hpb=07b041c2dd6958bb3a52ffcba07e8e642130548c diff --git a/schedule.cc b/schedule.cc index 62ba8fb3..136f4622 100644 --- a/schedule.cc +++ b/schedule.cc @@ -195,12 +195,15 @@ void Scheduler::wake(Thread *t) /** * @brief Select a Thread to run via round-robin + * + * @param n The current Node, holding priority information for the next thread + * selection + * * @return The next Thread to run */ -Thread * Scheduler::select_next_thread() +Thread * Scheduler::select_next_thread(Node *n) { int old_curr_thread = curr_thread_index; - Node *n = model->get_curr_node(); bool have_enabled_thread_with_priority = false; if (model->params.fairwindow != 0) {