10 typedef enum action_type {
18 /* Forward declaration */
23 ModelAction(action_type_t type, memory_order order, void *loc, int value);
26 thread_id_t get_tid() { return tid; }
27 action_type get_type() { return type; }
28 memory_order get_mo() { return order; }
29 void * get_location() { return location; }
30 int get_seq_number() const { return seq_number; }
32 Node * get_node() { return node; }
33 void set_node(Node *n) { node = n; }
39 bool same_var(ModelAction *act);
40 bool same_thread(ModelAction *act);
41 bool is_dependent(ModelAction *act);
43 inline bool operator <(const ModelAction& act) const {
44 return get_seq_number() < act.get_seq_number();
46 inline bool operator >(const ModelAction& act) const {
47 return get_seq_number() > act.get_seq_number();
61 typedef std::list<class ModelAction *> action_list_t;
63 #endif /* __ACTION_H__ */