X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7d5a3664274125b303dfd118c913717b2af4081f..631145c79d9036f57360c618a9651930bf65453c:/examples/s4u/async-wait/s4u-async-wait.cpp diff --git a/examples/s4u/async-wait/s4u-async-wait.cpp b/examples/s4u/async-wait/s4u-async-wait.cpp index 127043527d..06731252ef 100644 --- a/examples/s4u/async-wait/s4u-async-wait.cpp +++ b/examples/s4u/async-wait/s4u-async-wait.cpp @@ -37,10 +37,9 @@ static void sender(int argc, char** argv) // It will be destroyed when this actor leaves the loop, ie before the receiver gets the data std::string* payload = new std::string(msg_content); - XBT_INFO("Send '%s' to '%s'", msg_content.c_str(), mbox->get_cname()); - /* Create a communication representing the ongoing communication and then */ simgrid::s4u::CommPtr comm = mbox->put_async(payload, msg_size); + XBT_INFO("Send '%s' to '%s'", msg_content.c_str(), mbox->get_cname()); if (sleep_test_time > 0) { /* - "test_time" is set to 0, wait */ while (not comm->test()) { /* - Call test() every "sleep_test_time" otherwise */