11 typedef enum action_type {
19 /* Forward declaration */
25 ModelAction(action_type_t type, memory_order order, void *loc, int value);
28 thread_id_t get_tid() { return tid; }
29 action_type get_type() { return type; }
30 memory_order get_mo() { return order; }
31 void * get_location() { return location; }
32 int get_seq_number() { return seq_number; }
34 TreeNode * get_treenode() { return treenode; }
35 void set_node(TreeNode *n) { treenode = n; }
36 void set_node(Node *n) { node = n; }
42 bool same_var(ModelAction *act);
43 bool same_thread(ModelAction *act);
44 bool is_dependent(ModelAction *act);
56 typedef std::list<class ModelAction *> action_list_t;
58 #endif /* __ACTION_H__ */