]> AND Public Git Repository - simgrid.git/blobdiff - examples/c/app-token-ring/app-token-ring.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not call actors processes in S4U examples
[simgrid.git] / examples / c / app-token-ring / app-token-ring.c
index 275b4dc543a129a22e9596e4842bf3aad43136f7..f78e27db713f6d0811c903b97af59c0c756f919d 100644 (file)
@@ -62,10 +62,9 @@ int main(int argc, char* argv[])
 
   XBT_INFO("Number of hosts '%zu'", host_count);
   for (size_t i = 0; i < host_count; i++) {
-    /* - Give a unique rank to each host and create a @ref relay_runner process on each */
+    /* - Give a unique rank to each host and create a @ref relay_runner actor on each */
     char* name_host  = bprintf("%zu", i);
-    sg_actor_t actor = sg_actor_init(name_host, hosts[i]);
-    sg_actor_start(actor, relay_runner, 0, NULL);
+    sg_actor_create(name_host, hosts[i], relay_runner, 0, NULL);
     free(name_host);
   }
   free(hosts);