threads: add flag for a special type of "model-checker thread"
[model-checker.git] / threads.h
index a379494d43bd93ee78dea0f3f0bb98dcd0af60a4..5e8cbef50a95648f2b6ac35069620b44b4e433a8 100644 (file)
--- a/threads.h
+++ b/threads.h
@@ -101,6 +101,8 @@ public:
                return ret;
        }
 
+       bool is_model_thread() { return model_thread; }
+
        friend void thread_startup();
 
        SNAPSHOTALLOC
@@ -131,6 +133,9 @@ private:
         * @see Thread::get_return_value()
         */
        uint64_t last_action_val;
+
+       /** @brief Is this Thread a special model-checker thread? */
+       const bool model_thread;
 };
 
 Thread * thread_current();