return type == ATOMIC_RMWC;
}
+bool ModelAction::is_fence() const
+{
+ return type == ATOMIC_FENCE;
+}
+
bool ModelAction::is_initialization() const
{
return type == ATOMIC_INIT;
ASSERT(cv);
reads_from = act;
if (act != NULL && this->is_acquire()) {
- std::vector<const ModelAction *> release_heads;
+ std::vector< const ModelAction *, MyAlloc<const ModelAction *> > release_heads;
model->get_release_seq_heads(this, &release_heads);
for (unsigned int i = 0; i < release_heads.size(); i++)
synchronize_with(release_heads[i]);
case THREAD_JOIN:
type_str = "thread join";
break;
+ case THREAD_FINISH:
+ type_str = "thread finish";
+ break;
case ATOMIC_READ:
type_str = "atomic read";
break;
case ATOMIC_RMW:
type_str = "atomic rmw";
break;
+ case ATOMIC_FENCE:
+ type_str = "fence";
+ break;
case ATOMIC_RMWR:
type_str = "atomic rmwr";
break;