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