X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=nodestack.h;h=648ef4dfc318afc38a4e98b1e31bf4a1bcc944eb;hb=11270ed797bd19f432589cdc7b01688ef924dd34;hp=1dfccfcb7b9cc268d7cfab5b3aada4df8205b4d7;hpb=ffc110b3aaa80564dbf85f3c6a9049efd40571f1;p=model-checker.git diff --git a/nodestack.h b/nodestack.h index 1dfccfc..648ef4d 100644 --- a/nodestack.h +++ b/nodestack.h @@ -53,7 +53,7 @@ struct fairness_info { */ class Node { public: - Node(ModelAction *act = NULL, Node *par = NULL, int nthreads = 1, Node *prevfairness = NULL); + Node(ModelAction *act = NULL, Node *par = NULL, int nthreads = 2, Node *prevfairness = NULL); ~Node(); /* return true = thread choice has already been explored */ bool has_been_explored(thread_id_t tid); @@ -66,6 +66,8 @@ public: thread_id_t get_next_backtrack(); bool is_enabled(Thread *t); bool is_enabled(thread_id_t tid); + enabled_type_t enabled_status(thread_id_t tid); + ModelAction * get_action() { return action; } bool has_priority(thread_id_t tid); int get_num_threads() {return num_threads;}