Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename C examples binaries (prefix and not suffix)
[simgrid.git] / examples / s4u / exec-async / s4u-exec-async.cpp
index 6b45285b53febcf6bc61b7e2388065f7a676a118..d276509689001c45f3c16a4151773f35e8e48ac8 100644 (file)
@@ -7,7 +7,7 @@
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example");
 
-/* This actor simply waits for its task completion after starting it.
+/* This actor simply waits for its activity completion after starting it.
  * That's exactly equivalent to synchronous execution. */
 static void waiter()
 {
@@ -33,7 +33,6 @@ static void monitor()
              100 * activity->get_remaining_ratio());
     simgrid::s4u::this_actor::sleep_for(0.3);
   }
-  activity->wait();
 
   XBT_INFO("Goodbye now!");
 }