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
CommWaitTransition mailbox is now valid
[simgrid.git]
/
src
/
kernel
/
activity
/
CommImpl.cpp
diff --git
a/src/kernel/activity/CommImpl.cpp
b/src/kernel/activity/CommImpl.cpp
index 8e619335b39164148710c24a6348b1d27a1b4461..9a6579c12c42bb705a227a00927b95ee5c5a5f4d 100644
(file)
--- a/
src/kernel/activity/CommImpl.cpp
+++ b/
src/kernel/activity/CommImpl.cpp
@@
-128,6
+128,8
@@
CommImpl& CommImpl::set_rate(double rate)
}
CommImpl& CommImpl::set_mailbox(MailboxImpl* mbox)
{
}
CommImpl& CommImpl::set_mailbox(MailboxImpl* mbox)
{
+ if (mbox != nullptr)
+ mbox_id_ = mbox->get_id();
mbox_ = mbox;
return *this;
}
mbox_ = mbox;
return *this;
}