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() const { return seq_number; }
34 TreeNode * get_treenode() { return treenode; }
35 void set_node(TreeNode *n) { treenode = n; }
36 Node * get_node() { return node; }
37 void set_node(Node *n) { node = n; }
43 bool same_var(ModelAction *act);
44 bool same_thread(ModelAction *act);
45 bool is_dependent(ModelAction *act);
47 inline bool operator <(const ModelAction& act) const {
48 return get_seq_number() < act.get_seq_number();
50 inline bool operator >(const ModelAction& act) const {
51 return get_seq_number() > act.get_seq_number();
64 typedef std::list<class ModelAction *> action_list_t;
66 #endif /* __ACTION_H__ */