Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix clang build
[simgrid.git] / examples / s4u / app-masterworker / s4u_app-masterworker.cpp
index 0699bb0..d6797f7 100644 (file)
@@ -70,7 +70,7 @@ public:
   void operator()()
   {
     while (1) { /* The worker waits in an infinite loop for tasks sent by the \ref master */
-      char* res = static_cast<char*>(simgrid::s4u::this_actor::recv(mailbox));
+      char* res = static_cast<char*>(mailbox->recv());
       xbt_assert(res != nullptr, "MSG_task_get failed");
 
       if (strcmp(res, "finalize") == 0) { /* - Exit if 'finalize' is received */