X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/302e7ed38e37504bd6cde8207f7065b49f14e906:/examples/msg/trace-simple/trace-simple.c..614c681fbb931bf120a2f4ddd6a0c682df021041:/examples/msg/process-create/process-create.c diff --git a/examples/msg/trace-simple/trace-simple.c b/examples/msg/process-create/process-create.c similarity index 67% rename from examples/msg/trace-simple/trace-simple.c rename to examples/msg/process-create/process-create.c index a53e51fb15..956c2f9161 100644 --- a/examples/msg/trace-simple/trace-simple.c +++ b/examples/msg/process-create/process-create.c @@ -5,7 +5,8 @@ #include "simgrid/msg.h" -static int simple_func(int argc, char *argv[]) +/* Main function of the process I want to start manually */ +static int process_function(int argc, char *argv[]) { msg_task_t task = MSG_task_create("task", 100, 0, NULL); MSG_task_execute (task); @@ -19,8 +20,8 @@ int main(int argc, char *argv[]) xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); MSG_create_environment(argv[1]); - MSG_process_create("simple_func", simple_func, NULL, MSG_get_host_by_name("Tremblay")); - MSG_process_create("simple_func", simple_func, NULL, MSG_get_host_by_name("Fafard")); + MSG_process_create("simple_func", process_function, NULL, MSG_get_host_by_name("Tremblay")); + MSG_process_create("simple_func", process_function, NULL, MSG_get_host_by_name("Fafard")); MSG_main(); return 0;