From 6357baf85edec072a52c7ea18e9fdb087765f9cb Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Mon, 23 Apr 2012 15:40:42 -0700 Subject: [PATCH] schedule: bugfix - set 'current' thread in all cases When the scheduler was following a model-checking replay execution, it did not set the 'current' thread properly. --- schedule.cc | 1 + 1 file changed, 1 insertion(+) 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; -- 2.34.1