X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e5cc1bfb9f7d7693341c33a6e0a6906f447791e..5edec65e26d76490b9753d8db950a8a2ddf3cb2c:/examples/c/actor-create/actor-create.c diff --git a/examples/c/actor-create/actor-create.c b/examples/c/actor-create/actor-create.c index eda06b9f32..43382e8041 100644 --- a/examples/c/actor-create/actor-create.c +++ b/examples/c/actor-create/actor-create.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2023. 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. */ @@ -7,7 +7,7 @@ * * The first step is to declare the code of your actors (what they do exactly does not matter to this example) and then * you ask SimGrid to start your actors. There is three ways of doing so: - * - Directly, by instantiating your actor as paramter to Actor::create() + * - Directly, by instantiating your actor as parameter to Actor::create() * - By first registering your actors before instantiating it; * - Through the deployment file. * @@ -21,8 +21,8 @@ #include #include #include -#include #include +#include // This declares a logging channel so that XBT_INFO can be used later XBT_LOG_NEW_DEFAULT_CATEGORY(actor_create, "The logging channel used in this example"); @@ -88,16 +88,16 @@ int main(int argc, char** argv) */ int recv_argc = 2; const char* recv_argv[] = {"receiver", "mb42", NULL}; - sg_actor_create("receiver", sg_host_by_name("Fafard"), receiver, recv_argc, recv_argv); + sg_actor_create_("receiver", sg_host_by_name("Fafard"), receiver, recv_argc, recv_argv); int sender1_argc = 3; const char* sender1_argv[] = {"sender", "GaBuZoMeu", "mb42", NULL}; - sg_actor_create("sender1", sg_host_by_name("Tremblay"), sender, sender1_argc, sender1_argv); + sg_actor_create_("sender1", sg_host_by_name("Tremblay"), sender, sender1_argc, sender1_argv); int sender2_argc = 3; const char* sender2_argv[] = {"sender", "GloubiBoulga", "mb42", NULL}; sg_actor_t sender2 = sg_actor_init("sender2", sg_host_by_name("Jupiter")); - sg_actor_start(sender2, sender, sender2_argc, sender2_argv); + sg_actor_start_(sender2, sender, sender2_argc, sender2_argv); /* But starting actors directly is considered as a bad experimental habit, since it ties the code * you want to test with the experimental scenario. Starting your actors from an external deployment