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
clean up before modifications
[simgrid.git]
/
src
/
s4u
/
s4u_Mailbox.cpp
diff --git
a/src/s4u/s4u_Mailbox.cpp
b/src/s4u/s4u_Mailbox.cpp
index
b3a33a6
..
fd5a442
100644
(file)
--- a/
src/s4u/s4u_Mailbox.cpp
+++ b/
src/s4u/s4u_Mailbox.cpp
@@
-88,7
+88,7
@@
CommPtr Mailbox::put_init()
{
CommPtr res(new Comm());
res->sender_ = kernel::actor::ActorImpl::self();
- res->
mailbox_ = this
;
+ res->
set_mailbox(this)
;
return res;
}
@@
-123,9
+123,8
@@
void Mailbox::put(void* payload, uint64_t simulated_size_in_bytes, double timeou
CommPtr Mailbox::get_init()
{
-
CommPtr res(new Comm()
);
+
auto res = CommPtr(new Comm())->set_mailbox(this
);
res->receiver_ = kernel::actor::ActorImpl::self();
- res->mailbox_ = this;
return res;
}