X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=nodestack.h;h=8ad329eeaf04f09eb4037c6d9dc6931e8cc1524a;hb=e6789461057e3395ba78575b85c114b553f4ed19;hp=0a9422572eb0c4bd3ae6ce18b96757c57281a29f;hpb=6fb7781c41cfed30851527911c4a48dae79cb107;p=model-checker.git diff --git a/nodestack.h b/nodestack.h index 0a94225..8ad329e 100644 --- a/nodestack.h +++ b/nodestack.h @@ -64,6 +64,9 @@ public: enabled_type_t enabled_status(thread_id_t tid) const; ModelAction * get_action() const { return action; } + void set_uninit_action(ModelAction *act) { uninit_action = act; } + ModelAction * get_uninit_action() const { return uninit_action; } + bool has_priority(thread_id_t tid) const; void update_yield(Scheduler *); bool has_priority_over(thread_id_t tid, thread_id_t tid2) const; @@ -124,6 +127,10 @@ private: read_from_type_t read_from_status; ModelAction * const action; + + /** @brief ATOMIC_UNINIT action which was created at this Node */ + ModelAction *uninit_action; + Node * const parent; const int num_threads; std::vector< bool, ModelAlloc > explored_children;