X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=nodestack.cc;h=80bf5c41bf1d1721e20ad7d6d38fe7f141ed869f;hb=e7e175a74d95b5ed0a50750453168275f2fa3589;hp=bfcf11ff6dafb0f525b92b202e5401b5f3ce046f;hpb=f9e2e3a893918a431d3af1e6657cd08260e31941;p=model-checker.git diff --git a/nodestack.cc b/nodestack.cc index bfcf11f..80bf5c4 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -803,7 +803,7 @@ ModelAction * NodeStack::explore_action(ModelAction *act, enabled_type_t *is_ena prevfairness = node_list[head_idx - model->params.fairwindow]; } - int next_threads = model->get_num_threads(); + int next_threads = execution->get_num_threads(); if (act->get_type() == THREAD_CREATE) next_threads++; node_list.push_back(new Node(act, head, next_threads, prevfairness));