7 #include "libthreads.h"
12 typedef enum action_type {
22 ModelAction(action_type_t type, memory_order order, void *loc, int value);
36 class Scheduler *scheduler;
37 struct thread *system_thread;
39 void add_system_thread(struct thread *t);
40 void assign_id(struct thread *t);
42 void set_current_action(ModelAction *act) { current_action = act; }
43 void check_current_action(void);
44 void print_trace(void);
48 class ModelAction *current_action;
49 std::list<class ModelAction *> action_trace;
52 extern ModelChecker *model;
54 #endif /* __MODEL_H__ */