X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=model.cc;h=f320b8fab5ffdcfddc487f294afad91c80cb4022;hb=b927f3521995cdb7adab6059f1fa81b8d2e545f3;hp=52eab24c6790fdc472bdfc30937fa356aa319fed;hpb=b133a2b2e11e6b95dfa805b9b90a4e53dce3d81d;p=model-checker.git diff --git a/model.cc b/model.cc index 52eab24..f320b8f 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); }