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
Replaced:
[simgrid.git]
/
src
/
s4u
/
s4u_comm.cpp
diff --git
a/src/s4u/s4u_comm.cpp
b/src/s4u/s4u_comm.cpp
index
7729d3e
..
17a66b6
100644
(file)
--- a/
src/s4u/s4u_comm.cpp
+++ b/
src/s4u/s4u_comm.cpp
@@
-179,8
+179,9
@@
void Comm::cancel()
bool Comm::test() {
xbt_assert(state_ == inited || state_ == started || state_ == finished);
bool Comm::test() {
xbt_assert(state_ == inited || state_ == started || state_ == finished);
- if (state_ == finished)
- xbt_die("Don't call test on a finished comm.");
+ if (state_ == finished) {
+ return true;
+ }
if (state_ == inited) {
this->start();
if (state_ == inited) {
this->start();