X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=threads.h;h=9456a22f2fe4942b1004a87794fa3474eaeab26b;hb=328a2c09c2ee06d0e1c49ccb84877fa17b436a01;hp=87a21ef2633f46f14de70240f052bc50af2adcce;hpb=2cd14a2ba5f68a5bd35c1094c9d5a83891b483f8;p=model-checker.git diff --git a/threads.h b/threads.h index 87a21ef..9456a22 100644 --- a/threads.h +++ b/threads.h @@ -84,6 +84,8 @@ public: */ void push_wait_list(ModelAction *act) { wait_list.push_back(act); } + ModelAction * get_pending() { return pending; } + void set_pending(ModelAction *act) { pending = act; } /** * Remove one ModelAction from the waiting list * @return The ModelAction that was removed from the waiting list @@ -102,6 +104,7 @@ private: Thread *parent; ModelAction *creation; + ModelAction *pending; void (*start_routine)(void *); void *arg; ucontext_t context;