model: move get_current_thread() implementation out of header
[model-checker.git] / model.h
diff --git a/model.h b/model.h
index a2d33432de948e4bc64b48ca6d7c1c7596f1a20f..8e57876dabf3950e9cd3378eb15d50085a044d73 100644 (file)
--- a/model.h
+++ b/model.h
@@ -26,7 +26,7 @@ class CycleGraph;
 class Promise;
 
 /** @brief Shorthand for a list of release sequence heads */
 class Promise;
 
 /** @brief Shorthand for a list of release sequence heads */
-typedef std::vector< const ModelAction *, MyAlloc<const ModelAction *> > rel_heads_list_t;
+typedef std::vector< const ModelAction *, ModelAlloc<const ModelAction *> > rel_heads_list_t;
 
 /**
  * Model checker parameter structure. Holds run-time configuration options for
 
 /**
  * Model checker parameter structure. Holds run-time configuration options for
@@ -78,9 +78,7 @@ public:
 
        thread_id_t get_next_id();
        int get_num_threads();
 
        thread_id_t get_next_id();
        int get_num_threads();
-
-       /** @return The currently executing Thread. */
-       Thread * get_current_thread() { return scheduler->get_current_thread(); }
+       Thread * get_current_thread();
 
        int switch_to_master(ModelAction *act);
        ClockVector * get_cv(thread_id_t tid);
 
        int switch_to_master(ModelAction *act);
        ClockVector * get_cv(thread_id_t tid);