void ModelAction::create_cv(ModelAction *parent)
{
- ASSERT(cv == NULL);
+ if (cv)
+ return;
+
if (parent)
cv = new ClockVector(parent->cv, this);
else
- cv = new ClockVector();
+ cv = new ClockVector(NULL, this);
}
void ModelAction::read_from(ModelAction *act)
case ATOMIC_WRITE:
type_str = "atomic write";
break;
+ case ATOMIC_RMW:
+ type_str = "atomic rmw";
+ break;
default:
type_str = "unknown type";
}