12 typedef enum action_type {
20 /* Forward declaration */
26 ModelAction(action_type_t type, memory_order order, void *loc, int value);
30 thread_id_t get_tid() { return tid; }
31 action_type get_type() { return type; }
32 memory_order get_mo() { return order; }
33 void * get_location() { return location; }
34 int get_seq_number() const { return seq_number; }
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 void create_cv(ModelAction *parent = NULL);
48 void read_from(ModelAction *act);
50 inline bool operator <(const ModelAction& act) const {
51 return get_seq_number() < act.get_seq_number();
53 inline bool operator >(const ModelAction& act) const {
54 return get_seq_number() > act.get_seq_number();
70 typedef std::list<class ModelAction *> action_list_t;
72 #endif /* __ACTION_H__ */