Bug fix
[c11tester.git] / model.h
diff --git a/model.h b/model.h
index ed364b1e701a3f2623a67a4362cd378210345fbb..08f51b41752a8eced66f210b4a0c5477f82ff753 100644 (file)
--- a/model.h
+++ b/model.h
@@ -55,6 +55,17 @@ public:
        uint64_t switch_to_master(ModelAction *act);
        uint64_t switch_thread(ModelAction *act);
 
+       void continueRunExecution(Thread *old);
+       void startRunExecution(ucontext_t *old);
+       void finishRunExecution(Thread *old);
+       void finishRunExecution(ucontext_t *old);
+       void consumeAction();
+       void chooseThread(ModelAction *act, Thread *thr);
+       Thread * getNextThread();
+       void handleChosenThread(Thread *old);
+       void handleChosenThread(ucontext_t *old);
+       void handleNewValidThread(Thread *old, Thread *next);
+
        void assert_bug(const char *msg, ...);
 
        void assert_user_bug(const char *msg);
@@ -83,6 +94,9 @@ private:
        Thread * chosen_thread;
 
        bool thread_chosen;
+       bool break_execution;
+
+       modelclock_t checkfree;
 
        unsigned int get_num_threads() const;