6 #include "libthreads.h"
12 typedef enum action_type {
20 /* Forward declaration (tree.h) */
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; }
33 TreeNode * get_node() { return node; }
34 void set_node(TreeNode *n) { node = n; }
40 bool same_var(ModelAction *act);
41 bool same_thread(ModelAction *act);
42 bool is_dependent(ModelAction *act);
52 typedef std::list<class ModelAction *> action_list_t;
54 #endif /* __ACTION_H__ */