A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Actions executed by the same actor are always dependent, damnit
[simgrid.git]
/
src
/
mc
/
transition
/
TransitionSynchro.cpp
diff --git
a/src/mc/transition/TransitionSynchro.cpp
b/src/mc/transition/TransitionSynchro.cpp
index
df630ee
..
5e7ded2
100644
(file)
--- a/
src/mc/transition/TransitionSynchro.cpp
+++ b/
src/mc/transition/TransitionSynchro.cpp
@@
-125,6
+125,10
@@
bool SemaphoreTransition::depends(const Transition* o) const
if (o->type_ < type_)
return o->depends(this);
if (o->type_ < type_)
return o->depends(this);
+ // Actions executed by the same actor are always dependent
+ if (o->aid_ == aid_)
+ return true;
+
if (const auto* other = dynamic_cast<const SemaphoreTransition*>(o)) {
if (sem_ != other->sem_)
return false;
if (const auto* other = dynamic_cast<const SemaphoreTransition*>(o)) {
if (sem_ != other->sem_)
return false;