straighten out header includes, comment on Forward declarations
[model-checker.git] / action.h
index 3eafaa99a9f971fe7111c8a640da32e7954d09c5..508ad169478135a96110573b489b2fa4cdcfa7bf 100644 (file)
--- a/action.h
+++ b/action.h
@@ -3,7 +3,7 @@
 
 #include <list>
 
-#include "libthreads.h"
+#include "threads.h"
 #include "libatomic.h"
 
 #define VALUE_NONE -1
@@ -16,7 +16,7 @@ typedef enum action_type {
        ATOMIC_WRITE
 } action_type_t;
 
-/* Forward declaration (tree.h) */
+/* Forward declaration */
 class TreeNode;
 
 class ModelAction {
@@ -28,6 +28,7 @@ public:
        action_type get_type() { return type; }
        memory_order get_mo() { return order; }
        void * get_location() { return location; }
+       int get_seq_number() { return seq_number; }
 
        TreeNode * get_node() { return node; }
        void set_node(TreeNode *n) { node = n; }
@@ -46,6 +47,7 @@ private:
        thread_id_t tid;
        int value;
        TreeNode *node;
+       int seq_number;
 };
 
 typedef std::list<class ModelAction *> action_list_t;