10 typedef enum action_type {
18 /* Forward declaration */
24 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 Node * get_node() { return node; }
35 void set_node(Node *n) { node = n; }
41 bool same_var(ModelAction *act);
42 bool same_thread(ModelAction *act);
43 bool is_dependent(ModelAction *act);
45 inline bool operator <(const ModelAction& act) const {
46 return get_seq_number() < act.get_seq_number();
48 inline bool operator >(const ModelAction& act) const {
49 return get_seq_number() > act.get_seq_number();
65 typedef std::list<class ModelAction *> action_list_t;
67 #endif /* __ACTION_H__ */