X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=futex.cc;h=677b4afd9fe29740aacd604566d8811da833d06f;hb=HEAD;hp=0647337bc725b61d0110953e8670bc01784b6a7f;hpb=a1280c133564afec30de10cc1de12a23b02a13d0;p=c11tester.git diff --git a/futex.cc b/futex.cc index 0647337b..677b4afd 100644 --- a/futex.cc +++ b/futex.cc @@ -61,6 +61,10 @@ namespace std _GLIBCXX_VISIBILITY(default) // INT_MAX wakes all the waiters at the address __addr ModelExecution *execution = model->get_execution(); cdsc::condition_variable *v = execution->getCondMap()->get( (pthread_cond_t *) __addr); + + if (v == NULL) + return;// do nothing + v->notify_all(); }