Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Mark `ActorJoin` dependent with `target_`
[simgrid.git] / src / mc / transition / TransitionActorJoin.cpp
index c6e1533..41eb681 100644 (file)
@@ -27,7 +27,13 @@ std::string ActorJoinTransition::to_string(bool verbose) const
 }
 bool ActorJoinTransition::depends(const Transition* other) const
 {
-  // Joining is indep with any other transitions:
+  // Joining is dependent with any transition whose
+  // actor is that of the `other` action. , Join i
+  if (other->aid_ == target_) {
+    return true;
+  }
+
+  // Otherwise, joining is indep with any other transitions:
   // - It is only enabled once the target ends, and after this point it's enabled no matter what
   // - Other joins don't affect it, and it does not impact on the enabledness of any other transition
   return false;