Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert msg/app-masterworker
[simgrid.git] / examples / s4u / actor-yield / s4u-actor-yield.cpp
index 8fc130c..6abfa67 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017-2018. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2017-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -14,7 +14,7 @@
  * It can also be used to benchmark our context-switching mechanism.
  */
 XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_actor_yield, "Messages specific for this s4u example");
-/* Main function of the Yielder process */
+/* Main function of the Yielder actor */
 class yielder {
   long number_of_yields;
 
@@ -36,8 +36,8 @@ int main(int argc, char* argv[])
                        "\tExample: %s platform.xml deployment.xml\n",
              argv[0], argv[0]);
 
-  e.load_platform(argv[1]); /* - Load the platform description */
-  e.register_function<yielder>("yielder");
+  e.load_platform(argv[1]);             /* Load the platform description */
+  e.register_actor<yielder>("yielder"); /* Register the class representing the actors */
 
   e.load_deployment(argv[2]);