11 typedef enum action_type {
19 /* Forward declaration */
24 ModelAction(action_type_t type, memory_order order, void *loc, int value);
27 thread_id_t get_tid() { return tid; }
28 action_type get_type() { return type; }
29 memory_order get_mo() { return order; }
30 void * get_location() { return location; }
31 int get_seq_number() const { return seq_number; }
33 Node * get_node() { return node; }
34 void set_node(Node *n) { node = n; }
40 bool same_var(ModelAction *act);
41 bool same_thread(ModelAction *act);
42 bool is_dependent(ModelAction *act);
44 inline bool operator <(const ModelAction& act) const {
45 return get_seq_number() < act.get_seq_number();
47 inline bool operator >(const ModelAction& act) const {
48 return get_seq_number() > act.get_seq_number();
60 typedef std::list<class ModelAction *> action_list_t;
62 #endif /* __ACTION_H__ */