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
Fix two minor bugs in the ODPOR implementation
[simgrid.git]
/
src
/
mc
/
api
/
State.hpp
diff --git
a/src/mc/api/State.hpp
b/src/mc/api/State.hpp
index
a015de9
..
7f0290b
100644
(file)
--- a/
src/mc/api/State.hpp
+++ b/
src/mc/api/State.hpp
@@
-122,6
+122,11
@@
public:
{
sleep_set_.insert_or_assign(t->aid_, Transition(t->type_, t->aid_, t->times_considered_));
}
+ bool is_actor_sleeping(aid_t actor) const
+ {
+ return std::find_if(sleep_set_.begin(), sleep_set_.end(), [=](const auto& pair) { return pair.first == actor; }) !=
+ sleep_set_.end();
+ }
/**
* @brief Inserts an arbitrary enabled actor into the wakeup tree