#include <list>
#include <map>
#include <cstddef>
+#include <ucontext.h>
#include "schedule.h"
#include "libthreads.h"
ModelChecker();
~ModelChecker();
class Scheduler *scheduler;
- Thread *system_thread;
- void add_system_thread(Thread *t);
+ void set_system_context(ucontext_t *ctxt) { system_context = ctxt; }
+ ucontext_t * get_system_context(void) { return system_context; }
void set_current_action(ModelAction *act) { current_action = act; }
void check_current_action(void);
- void print_trace(void);
+ void print_summary(void);
Thread * schedule_next_thread();
int add_thread(Thread *t);
Backtrack *exploring;
thread_id_t nextThread;
+ ucontext_t *system_context;
action_list_t *action_trace;
std::map<thread_id_t, class Thread *> thread_map;
class TreeNode *rootNode, *currentNode;
extern ModelChecker *model;
-int thread_switch_to_master(ModelAction *act);
-
#endif /* __MODEL_H__ */