Find a faster way to get currently executing thread's id
[c11tester.git] / model.h
diff --git a/model.h b/model.h
index 59ca72838adf40eb0649b33e54adeb4adf243869..03dafd11b1a0aa5493dcf8f1c62f549e788e7a74 100644 (file)
--- a/model.h
+++ b/model.h
@@ -44,6 +44,7 @@ public:
        Thread * get_thread(const ModelAction *act) const;
 
        Thread * get_current_thread() const;
+       thread_id_t get_current_thread_id() const;
 
        uint64_t switch_thread(ModelAction *act);
 
@@ -77,8 +78,6 @@ private:
 
        void startRunExecution(Thread *old);
        void finishRunExecution(Thread *old);
-       void consumeAction();
-       void chooseThread(ModelAction *act, Thread *thr);
        Thread * getNextThread(Thread *old);
        bool handleChosenThread(Thread *old);