X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=mutex.cc;h=d5ec40fff402df19093d68975c8a8914c0fa7567;hb=92dd847e38280a3bb0ec93781c47173a3848f1d7;hp=da3184e55a074823b2909bc653e1c2ba30b6b067;hpb=7f076cdf802fbb01682dc954d0d4afb26ba031a7;p=model-checker.git diff --git a/mutex.cc b/mutex.cc index da3184e..d5ec40f 100644 --- a/mutex.cc +++ b/mutex.cc @@ -1,6 +1,7 @@ #include #include "model.h" +#include "execution.h" #include "threads-model.h" #include "clockvector.h" #include "action.h" @@ -12,7 +13,7 @@ mutex::mutex() state.locked = NULL; thread_id_t tid = thread_current()->get_id(); state.alloc_tid = tid; - state.alloc_clock = model->get_cv(tid)->getClock(tid); + state.alloc_clock = model->get_execution()->get_cv(tid)->getClock(tid); } void mutex::lock()