X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=mutex.cc;h=fa751783dcc4418ddc8087e7ee5b24d566c412a5;hb=ad105d2fb3c5f352ac6b7da0e1e910e94692398d;hp=8b5d33b23e64f0c090633a498b330a9fd208eca4;hpb=c7a5091afba87a67423c0797fa001914ce9e2ff4;p=c11tester.git diff --git a/mutex.cc b/mutex.cc index 8b5d33b2..fa751783 100644 --- a/mutex.cc +++ b/mutex.cc @@ -11,7 +11,7 @@ namespace cdsc { mutex::mutex(int type) { state.locked = NULL; - thread_id_t tid = thread_current()->get_id(); + thread_id_t tid = thread_current_id(); state.alloc_tid = tid; ClockVector *cv = model->get_execution()->get_cv(tid); state.alloc_clock = cv == NULL ? 0 : cv->getClock(tid);