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
MailboxPtr looks like a smart pointer, but it's not. Kill it.
[simgrid.git]
/
teshsuite
/
s4u
/
listen_async
/
listen_async.cpp
diff --git
a/teshsuite/s4u/listen_async/listen_async.cpp
b/teshsuite/s4u/listen_async/listen_async.cpp
index
c1c5e0a
..
20172e5
100644
(file)
--- a/
teshsuite/s4u/listen_async/listen_async.cpp
+++ b/
teshsuite/s4u/listen_async/listen_async.cpp
@@
-15,7
+15,7
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example")
static void server()
{
static void server()
{
- simgrid::s4u::Mailbox
Ptr
mailbox = simgrid::s4u::Mailbox::by_name("mailbox");
+ simgrid::s4u::Mailbox
*
mailbox = simgrid::s4u::Mailbox::by_name("mailbox");
simgrid::s4u::CommPtr sendComm = mailbox->put_async(new std::string("Some data"), 0);
simgrid::s4u::CommPtr sendComm = mailbox->put_async(new std::string("Some data"), 0);
@@
-28,7
+28,7
@@
static void server()
delete res;
sendComm->wait();
delete res;
sendComm->wait();
- simgrid::s4u::Mailbox
Ptr
mailbox2 = simgrid::s4u::Mailbox::by_name("mailbox2");
+ simgrid::s4u::Mailbox
*
mailbox2 = simgrid::s4u::Mailbox::by_name("mailbox2");
mailbox2->set_receiver(simgrid::s4u::Actor::self());
mailbox2->put_init(new std::string("More data"), 0)->detach();
mailbox2->set_receiver(simgrid::s4u::Actor::self());
mailbox2->put_init(new std::string("More data"), 0)->detach();