return false;
}
-void ModelAction::create_cv(ModelAction *parent)
+void ModelAction::create_cv(const ModelAction *parent)
{
ASSERT(cv == NULL);
cv = new ClockVector(NULL, this);
}
-void ModelAction::read_from(ModelAction *act)
+void ModelAction::read_from(const ModelAction *act)
{
ASSERT(cv);
if (act->is_release() && this->is_acquire())
* @return true if this action's thread has synchronized with act's thread
* since the execution of act, false otherwise.
*/
-bool ModelAction::happens_before(ModelAction *act)
+bool ModelAction::happens_before(const ModelAction *act) const
{
return act->cv->synchronized_since(this);
}