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
[simgrid.git]
/
src
/
s4u
/
s4u_comm.cpp
diff --git
a/src/s4u/s4u_comm.cpp
b/src/s4u/s4u_comm.cpp
index
9191568
..
3d6be86
100644
(file)
--- a/
src/s4u/s4u_comm.cpp
+++ b/
src/s4u/s4u_comm.cpp
@@
-110,6
+110,7
@@
void Comm::wait() {
}
}
state_ = finished;
}
}
state_ = finished;
+ delete this;
}
void Comm::wait(double timeout) {
xbt_assert(state_ == started || state_ == inited);
}
void Comm::wait(double timeout) {
xbt_assert(state_ == started || state_ == inited);
@@
-132,6
+133,7
@@
void Comm::wait(double timeout) {
userData_, timeout, rate_);
}
state_ = finished;
userData_, timeout, rate_);
}
state_ = finished;
+ delete this;
}
s4u::Comm &Comm::send_async(MailboxPtr dest, void *data, int simulatedSize) {
}
s4u::Comm &Comm::send_async(MailboxPtr dest, void *data, int simulatedSize) {
@@
-162,6
+164,7
@@
bool Comm::test() {
if(simcall_comm_test(pimpl_)){
state_ = finished;
if(simcall_comm_test(pimpl_)){
state_ = finished;
+ delete this;
return true;
}
return false;
return true;
}
return false;