X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=model.cc;h=f320b8fab5ffdcfddc487f294afad91c80cb4022;hp=52eab24c6790fdc472bdfc30937fa356aa319fed;hb=b927f3521995cdb7adab6059f1fa81b8d2e545f3;hpb=a09a4346390cc28a29428ee5a0610b1054aa48ed diff --git a/model.cc b/model.cc index 52eab24c..f320b8fa 100644 --- a/model.cc +++ b/model.cc @@ -235,7 +235,7 @@ void ModelChecker::wake_up_sleeping_actions(ModelAction * curr) { Thread *thr=get_thread(tid); if ( scheduler->get_enabled(thr) == THREAD_SLEEP_SET ) { ModelAction *pending_act=thr->get_pending(); - if (pending_act->could_synchronize_with(curr)) { + if ((!curr->is_rmwr())&&pending_act->could_synchronize_with(curr)) { //Remove this thread from sleep set scheduler->remove_sleep(thr); }