X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3368ca8f8b3fb922a94a217f0afc3243ae18c8f5..53782855f0f3041e92f763891722e8a253479451:/examples/s4u/app-token-ring/s4u_app-token-ring.cpp diff --git a/examples/s4u/app-token-ring/s4u_app-token-ring.cpp b/examples/s4u/app-token-ring/s4u_app-token-ring.cpp index 0bbedb06e6..d2c70ea96a 100644 --- a/examples/s4u/app-token-ring/s4u_app-token-ring.cpp +++ b/examples/s4u/app-token-ring/s4u_app-token-ring.cpp @@ -37,11 +37,11 @@ public: /* The root process (rank 0) first sends the token then waits to receive it back */ XBT_INFO("Host \"%u\" send 'Token' to Host \"%s\"", rank, neighbor_mailbox->name()); neighbor_mailbox->send(xbt_strdup("Token"), task_comm_size); - char* res = static_cast(simgrid::s4u::this_actor::recv(my_mailbox)); + char* res = static_cast(my_mailbox->recv()); XBT_INFO("Host \"%u\" received \"%s\"", rank, res); xbt_free(res); } else { - char* res = static_cast(simgrid::s4u::this_actor::recv(my_mailbox)); + char* res = static_cast(my_mailbox->recv()); XBT_INFO("Host \"%u\" received \"%s\"", rank, res); XBT_INFO("Host \"%u\" send 'Token' to Host \"%s\"", rank, neighbor_mailbox->name()); neighbor_mailbox->send(res, task_comm_size);