More bug fixes
[c11tester.git] / action.cc
index 4c1630f48d984ded88dc2b3015525a587a955420..16dcc5cde20afc4f5f3bf7a27d900fba52c5da0e 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -305,6 +305,16 @@ bool ModelAction::is_write() const
        return type == ATOMIC_WRITE || type == ATOMIC_RMW || type == ATOMIC_INIT || type == NONATOMIC_WRITE;
 }
 
+bool ModelAction::is_create() const
+{
+       return type == THREAD_CREATE || type == PTHREAD_CREATE;
+}
+
+bool ModelAction::is_free() const
+{
+       return type == READY_FREE;
+}
+
 bool ModelAction::could_be_write() const
 {
        return is_write() || is_rmwr();