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
small simplification
[simgrid.git]
/
src
/
kernel
/
activity
/
SemaphoreImpl.cpp
diff --git
a/src/kernel/activity/SemaphoreImpl.cpp
b/src/kernel/activity/SemaphoreImpl.cpp
index 66e9900eddbef3171493ad41c3f66dc68895e28d..05dc8d79a35f21be603a65842ad8ab3e2f913e43 100644
(file)
--- a/
src/kernel/activity/SemaphoreImpl.cpp
+++ b/
src/kernel/activity/SemaphoreImpl.cpp
@@
-25,7
+25,7
@@
void SemaphoreImpl::acquire(actor::ActorImpl* issuer, double timeout)
sleeping_.push_back(*issuer);
} else {
value_--;
sleeping_.push_back(*issuer);
} else {
value_--;
-
SIMIX_simcall_answer(&issuer->simcall
);
+
issuer->simcall_answer(
);
}
}
void SemaphoreImpl::release()
}
}
void SemaphoreImpl::release()
@@
-36,7
+36,7
@@
void SemaphoreImpl::release()
auto& actor = sleeping_.front();
sleeping_.pop_front();
actor.waiting_synchro = nullptr;
auto& actor = sleeping_.front();
sleeping_.pop_front();
actor.waiting_synchro = nullptr;
-
SIMIX_simcall_answer(&actor.simcall
);
+
actor.simcall_answer(
);
} else {
value_++;
}
} else {
value_++;
}