projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model: cleanup a few more interfaces
[model-checker.git]
/
mutex.cc
diff --git
a/mutex.cc
b/mutex.cc
index da3184e55a074823b2909bc653e1c2ba30b6b067..d5ec40fff402df19093d68975c8a8914c0fa7567 100644
(file)
--- a/
mutex.cc
+++ b/
mutex.cc
@@
-1,6
+1,7
@@
#include <mutex>
#include "model.h"
#include <mutex>
#include "model.h"
+#include "execution.h"
#include "threads-model.h"
#include "clockvector.h"
#include "action.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.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()
}
void mutex::lock()