Merge branch 'master' of /home/git/random-fuzzer into thread-switch
[c11tester.git] / model.h
diff --git a/model.h b/model.h
index b98e7505a4bc21664384c930392b7b1a9b2b2c47..ffc1a0c64b3175785440806f1be8c758b8ee62c1 100644 (file)
--- a/model.h
+++ b/model.h
@@ -18,8 +18,6 @@
 #include "classlist.h"
 #include "snapshot-interface.h"
 
-typedef SnapList<ModelAction *> action_list_t;
-
 /** @brief Model checker execution stats */
 struct execution_stats {
        int num_total;  /**< @brief Total number of executions */
@@ -55,15 +53,12 @@ public:
        uint64_t switch_to_master(ModelAction *act);
        uint64_t switch_thread(ModelAction *act);
 
-       void continueRunExecution(Thread *old);
-       void startRunExecution(ucontext_t *old);
+       void startRunExecution(Thread *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, ...);
@@ -94,6 +89,7 @@ private:
        Thread * chosen_thread;
 
        bool thread_chosen;
+       bool break_execution;
 
        modelclock_t checkfree;