add switch thread function
[c11tester.git] / model.h
diff --git a/model.h b/model.h
index 62b227e4bcdce915125e9c8b7f9a877c94ee9529..a1a04d138cb31d4fe5936d648303073871a7d400 100644 (file)
--- a/model.h
+++ b/model.h
@@ -53,6 +53,7 @@ public:
 
        void switch_from_master(Thread *thread);
        uint64_t switch_to_master(ModelAction *act);
+       uint64_t switch_thread(ModelAction *act);
 
        void assert_bug(const char *msg, ...);
 
@@ -77,6 +78,8 @@ private:
 
        int execution_number;
 
+       int curr_thread_num;
+
        unsigned int get_num_threads() const;
 
        void finish_execution(bool moreexecutions);