threads/model: move switch_to_master from class Thread to class ModelChecker
[model-checker.git] / model.h
diff --git a/model.h b/model.h
index f26ab55b5608da6a97d90f5015e2db7c28c5fe50..05cdf5ccb54b2f41ee4e45519e477ce0e9021a1b 100644 (file)
--- a/model.h
+++ b/model.h
@@ -48,6 +48,8 @@ public:
        Thread *get_thread(thread_id_t tid) { return thread_map[tid]; }
 
        void assign_id(Thread *t);
+
+       int switch_to_master(ModelAction *act);
 private:
        int used_thread_id;
        class ModelAction *current_action;