X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=action.cc;h=131cb74d7e821ba8c473499f0eed3e7eaf504191;hb=9c085ae909dbe3aba08a518cc7c9ac6134773108;hp=a88cc451f532a59a2ff939bef3172613aedf3e57;hpb=4730dd573ad7a28d875c31b6aa633f7bce420054;p=model-checker.git diff --git a/action.cc b/action.cc index a88cc45..131cb74 100644 --- a/action.cc +++ b/action.cc @@ -161,23 +161,23 @@ void ModelAction::create_cv(const ModelAction *parent) cv = new ClockVector(NULL, this); } - /** Update the model action's read_from action */ void ModelAction::read_from(const ModelAction *act) { ASSERT(cv); if (act!=NULL && act->is_release() && this->is_acquire()) { - synchronized(act); + synchronize_with(act); cv->merge(act->cv); } reads_from = act; } - -/** Synchronize the current thread with the thread corresponding to - * the ModelAction parameter. */ - -void ModelAction::synchronized(const ModelAction *act) { +/** + * Synchronize the current thread with the thread corresponding to the + * ModelAction parameter. + * @param act The ModelAction to synchronize with + */ +void ModelAction::synchronize_with(const ModelAction *act) { model->check_promises(cv, act->cv); cv->merge(act->cv); }