X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=threads.h;h=a379494d43bd93ee78dea0f3f0bb98dcd0af60a4;hb=c832cb55af09e735821ae3463bc37c29d3fa27c8;hp=b69f4265618d1dd2eb4ef18c66aef2b4442a0496;hpb=f4d77c40b4029cdc18f4aaa5a4e01dfbcfca5f7b;p=model-checker.git diff --git a/threads.h b/threads.h index b69f426..a379494 100644 --- a/threads.h +++ b/threads.h @@ -81,6 +81,14 @@ public: */ void push_wait_list(ModelAction *act) { wait_list.push_back(act); } + unsigned int num_wait_list() { + return wait_list.size(); + } + + ModelAction * get_waiter(unsigned int i) { + return wait_list[i]; + } + ModelAction * get_pending() { return pending; } void set_pending(ModelAction *act) { pending = act; } /**