X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=model.h;h=4b87b04a48a00263b9377c8e3b82549228e329f9;hb=bee1e27429b9a66e414eb83cf14e2089dd40a79e;hp=236bbe99497467165fe03ac05f760d778d307276;hpb=5ea8e3d5d861ed363e5ac5f3b20b8181dd197efb;p=model-checker.git diff --git a/model.h b/model.h index 236bbe9..4b87b04 100644 --- a/model.h +++ b/model.h @@ -5,7 +5,6 @@ #ifndef __MODEL_H__ #define __MODEL_H__ -#include #include #include #include @@ -112,8 +111,6 @@ public: void dumpGraph(char *filename) const; #endif - void add_thread(Thread *t); - void remove_thread(Thread *t); Thread * get_thread(thread_id_t tid) const; Thread * get_thread(const ModelAction *act) const; int get_promise_number(const Promise *promise) const; @@ -144,6 +141,8 @@ private: /** The scheduler to use: tracks the running/ready Threads */ Scheduler * const scheduler; + void add_thread(Thread *t); + bool sleep_can_read_from(ModelAction *curr, const ModelAction *write); bool thin_air_constraint_may_allow(const ModelAction *writer, const ModelAction *reader); bool mo_may_allow(const ModelAction *writer, const ModelAction *reader);