nodestack: rename 'read_from' to 'read_from_past'
[c11tester.git] / schedule.cc
index 8dd13304093008094c00d465ffb4086eec1e810d..44def6d67583e1282605de06fbb72dfe4fc3ab6b 100644 (file)
@@ -207,6 +207,10 @@ Thread * Scheduler::select_next_thread()
        return NULL;
 }
 
+void Scheduler::set_scheduler_thread(thread_id_t tid) {
+       curr_thread_index=id_to_int(tid);
+}
+
 /**
  * @brief Set the current "running" Thread
  * @param t Thread to run
@@ -215,8 +219,6 @@ void Scheduler::set_current_thread(Thread *t)
 {
        ASSERT(t && !t->is_model_thread());
 
-       //curr_thread_index = id_to_int(t->get_id());
-
        current = t;
        if (DBG_ENABLED())
                print();