X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=schedule.cc;h=1791605b7c38842c37d11553c37f663c9dc88c38;hb=bdef0741b8a01e16946d261bc2a657af5a683b3e;hp=d6ec03830abc9e395e16dec32945e827f739a52b;hpb=d4361e592c3a19d3a4ec24cea410118eac798b79;p=model-checker.git diff --git a/schedule.cc b/schedule.cc index d6ec038..1791605 100644 --- a/schedule.cc +++ b/schedule.cc @@ -3,6 +3,11 @@ #include "common.h" #include "model.h" +Scheduler::Scheduler() : + current(NULL) +{ +} + void Scheduler::add_thread(Thread *t) { DEBUG("thread %d\n", t->get_id()); @@ -48,9 +53,9 @@ void Scheduler::print() DEBUG("Current thread: %d\n", current->get_id()); else DEBUG("No current thread\n"); - DEBUG("Num. threads in ready list: %ld\n", readyList.size()); + DEBUG("Num. threads in ready list: %zu\n", readyList.size()); - std::list::iterator it; + std::list >::iterator it; for (it = readyList.begin(); it != readyList.end(); it++) DEBUG("In ready list: thread %d\n", (*it)->get_id()); }