projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More code towards freeing old actions
[c11tester.git]
/
action.cc
diff --git
a/action.cc
b/action.cc
index 4c1630f48d984ded88dc2b3015525a587a955420..814c7fb1be0f05df2e42725ef6fb7cd86c641b1c 100644
(file)
--- a/
action.cc
+++ b/
action.cc
@@
-305,6
+305,11
@@
bool ModelAction::is_write() const
return type == ATOMIC_WRITE || type == ATOMIC_RMW || type == ATOMIC_INIT || type == NONATOMIC_WRITE;
}
+bool ModelAction::is_free() const
+{
+ return type == READY_FREE;
+}
+
bool ModelAction::could_be_write() const
{
return is_write() || is_rmwr();