projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
schedule: bugfix - set 'current' thread in all cases
[c11tester.git]
/
schedule.cc
diff --git
a/schedule.cc
b/schedule.cc
index 4d1cb126579584942c67e32160c8f5e33669472b..d344fb1acdcf858db73d098b7341a8dae930125f 100644
(file)
--- 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;