projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some support for traceanalysis plugins
[model-checker.git]
/
include
/
mutex
diff --git
a/include/mutex
b/include/mutex
index 31fd7eb1f19ae83ae750a0bbf23f629a3b7d96e3..bd65a78a57647200dcc7e49a64dabcf3ffd41a4a 100644
(file)
--- a/
include/mutex
+++ b/
include/mutex
@@
-10,7
+10,7
@@
namespace std {
struct mutex_state {
namespace std {
struct mutex_state {
- bool islocked;
+ void *locked; /* Thread holding the lock */
thread_id_t alloc_tid;
modelclock_t alloc_clock;
};
thread_id_t alloc_tid;
modelclock_t alloc_clock;
};
@@
-18,7
+18,7
@@
namespace std {
class mutex {
public:
mutex();
class mutex {
public:
mutex();
- ~mutex()
;
+ ~mutex()
{}
void lock();
bool try_lock();
void unlock();
void lock();
bool try_lock();
void unlock();