X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=schedule.cc;h=d344fb1acdcf858db73d098b7341a8dae930125f;hb=6357baf85edec072a52c7ea18e9fdb087765f9cb;hp=4d1cb126579584942c67e32160c8f5e33669472b;hpb=b2e1861247c00af280dafdfd79e855f0011dee2d;p=model-checker.git diff --git a/schedule.cc b/schedule.cc index 4d1cb12..d344fb1 100644 --- a/schedule.cc +++ b/schedule.cc @@ -14,6 +14,7 @@ Thread *Scheduler::next_thread(void) Thread *t = model->schedule_next_thread(); if (t != NULL) { + current = t; readyList.remove(t); } else if (readyList.empty()) { t = NULL;