More code towards freeing old actions
[c11tester.git] / 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();