X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=nodestack.cc;h=d08fa5c733e126f1faa710bfb613bb1df6ecccff;hb=79f51bf7df7ed2c8095b0c2d7f730db6ccb9394a;hp=23e87ac690a79c334da6a9f8ed85a269ce073116;hpb=35c057636dd12235368cfb9644532c7561609624;p=model-checker.git diff --git a/nodestack.cc b/nodestack.cc index 23e87ac..d08fa5c 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -291,6 +291,14 @@ bool Node::is_enabled(Thread *t) return thread_id < num_threads && (enabled_array[thread_id] != THREAD_DISABLED); } +enabled_type_t Node::enabled_status(thread_id_t tid) { + int thread_id=id_to_int(tid); + if (thread_id < num_threads) + return enabled_array[thread_id]; + else + return THREAD_DISABLED; +} + bool Node::is_enabled(thread_id_t tid) { int thread_id=id_to_int(tid);