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
Remove unnecessary calls to c_str().
[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
0951f56
..
c1c5e0a
100644
(file)
--- a/
teshsuite/s4u/listen_async/listen_async.cpp
+++ b/
teshsuite/s4u/listen_async/listen_async.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2017
. The SimGrid Team. All rights reserved.
*/
+/* Copyright (c) 2017
-2019. The SimGrid Team. All rights reserved.
*/
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-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::MailboxPtr mailbox = simgrid::s4u::Mailbox::by
N
ame("mailbox");
+ simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::by
_n
ame("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,8
+28,8
@@
static void server()
delete res;
sendComm->wait();
delete res;
sendComm->wait();
- simgrid::s4u::MailboxPtr mailbox2 = simgrid::s4u::Mailbox::by
N
ame("mailbox2");
- mailbox2->set
R
eceiver(simgrid::s4u::Actor::self());
+ simgrid::s4u::MailboxPtr mailbox2 = simgrid::s4u::Mailbox::by
_n
ame("mailbox2");
+ mailbox2->set
_r
eceiver(simgrid::s4u::Actor::self());
mailbox2->put_init(new std::string("More data"), 0)->detach();
mailbox2->put_init(new std::string("More data"), 0)->detach();
@@
-46,9
+46,9
@@
static void server()
int main(int argc, char* argv[])
{
simgrid::s4u::Engine e(&argc, argv);
int main(int argc, char* argv[])
{
simgrid::s4u::Engine e(&argc, argv);
- e.load
P
latform(argv[1]);
+ e.load
_p
latform(argv[1]);
- simgrid::s4u::Actor::create
Actor
("test", simgrid::s4u::Host::by_name("Tremblay"), server);
+ simgrid::s4u::Actor::create("test", simgrid::s4u::Host::by_name("Tremblay"), server);
e.run();
e.run();