pull in most of atomic header file
[model-checker.git] / action.h
index 36c72079b165a6a7462d5a32698e61dbdef12dbd..e43955dda2826d980f632bf62af4e08397594d45 100644 (file)
--- a/action.h
+++ b/action.h
@@ -9,9 +9,9 @@
 #include <cstddef>
 
 #include "threads.h"
-#include "libatomic.h"
 #include "mymemory.h"
 #include "clockvector.h"
+#include "libatomic.h"
 
 /** Note that this value can be legitimately used by a program, and
                hence by iteself does not indicate no value. */
@@ -80,6 +80,8 @@ public:
                return get_seq_number() > act.get_seq_number();
        }
 
+       void upgrade_rmw(ModelAction * act);
+
        MEMALLOC
 private:
 
@@ -95,8 +97,7 @@ private:
        /** The thread id that performed this action. */
        thread_id_t tid;
 
-       /** The value read or written (if RMW, then the value written). This
-        * should probably be something longer. */
+       /** The value written (for write or RMW; undefined for read) */
        uint64_t value;
 
        /** The action that this action reads from. Only valid for reads */