Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix Host::execute to use *this as a host location, not the this_actor->get_host()
[simgrid.git] / examples / c / actor-suspend / actor-suspend.c
index 01ed3c0f09da1b182e59b58c1b90c21ef2780d7c..d38034d2a190d4836d4bb6cccae3743c674cff50 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2020. The SimGrid Team.
+/* Copyright (c) 2007-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -14,7 +14,7 @@
 XBT_LOG_NEW_DEFAULT_CATEGORY(actor_suspend, "Messages specific for this example");
 
 /* The Lazy guy only wants to sleep, but can be awaken by the dream_master actor. */
-static void lazy_guy(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void lazy_guy(int argc, char* argv[])
 {
   XBT_INFO("Nobody's watching me ? Let's go to sleep.");
   sg_actor_suspend(sg_actor_self()); /* - Start by suspending itself */
@@ -35,7 +35,7 @@ static void lazy_guy(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 }
 
 /* The Dream master: */
-static void dream_master(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void dream_master(int argc, char* argv[])
 {
   XBT_INFO("Let's create a lazy guy."); /* - Create a lazy_guy actor */
   sg_actor_t lazy = sg_actor_create("Lazy", sg_host_self(), lazy_guy, 0, NULL);
@@ -73,7 +73,7 @@ static void dream_master(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* arg
 int main(int argc, char* argv[])
 {
   simgrid_init(&argc, argv);
-  xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
+  xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s platform.xml\n", argv[0], argv[0]);
 
   simgrid_load_platform(argv[1]);
   simgrid_register_function("dream_master", dream_master);