Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remaining s/MSG_global_init/MSG_init/.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 21 Jun 2012 13:05:22 +0000 (15:05 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 21 Jun 2012 15:20:53 +0000 (17:20 +0200)
doc/ref_guide/doxygen/module-msg.doc
doc/user_guide/doxygen/install.doc
doc/user_guide/doxygen/options.doc
doc/user_guide/doxygen/tracing.doc
examples/msg/ns3/ns3.c
src/msg/msg_deployment.c
src/simix/smx_user.c

index 695efec..f908338 100644 (file)
@@ -37,7 +37,7 @@
 The basic workflow is the following (check the \ref MSG_examples for
 details).
 
- -# Initialize the library with #MSG_global_init
+ -# Initialize the library with #MSG_init
  -# Create a platform (usually by parsing a file with
     #MSG_create_environment)
  -# Register the functions that your processes are supposed to run with
index 1e76fc3..544faf3 100644 (file)
@@ -439,7 +439,7 @@ feel free to organize it as you want).
           msg_task_usage.
 
       \li <tt>masterslave.c</tt>: a C file with the main function, i.e.
-          the MSG initialization (MSG_global_init()), the platform
+          the MSG initialization (MSG_init()), the platform
           creation (e.g. with MSG_create_environment()), the
           deployment phase (e.g. with MSG_function_register() and
           MSG_launch_application()) and the call to
index c1d2409..362e6b3 100644 (file)
@@ -46,7 +46,7 @@ currently used in SimGrid. \code
 extern xbt_cfg_t _surf_cfg_set;
 
 int main(int argc, char *argv[]) {
-     MSG_global_init(&argc, argv);
+     MSG_init(&argc, argv);
 
      xbt_cfg_set_parse(_surf_cfg_set,"Item:Value");
 
index 11b2142..fb616d5 100644 (file)
@@ -275,7 +275,7 @@ A simplified example using the tracing mandatory functions.
 \verbatim
 int main (int argc, char **argv)
 {
-  MSG_global_init (&argc, &argv);
+  MSG_init (&argc, &argv);
 
   //(... after deployment ...)
 
index 81ee74b..ed00976 100644 (file)
@@ -210,7 +210,7 @@ int main(int argc, char *argv[])
   MSG_error_t res = MSG_OK;
   bool_printed = 0;
 
-  MSG_global_init(&argc, argv);
+  MSG_init(&argc, argv);
   if (argc < 3) {
     printf("Usage: %s platform_file deployment_file\n", argv[0]);
     exit(1);
index ec21889..791429c 100644 (file)
@@ -27,7 +27,7 @@ void MSG_launch_application(const char *file)
 {
 
   xbt_assert(msg_global,
-              "MSG_global_init_args has to be called before MSG_launch_application.");
+              "MSG_init has to be called before MSG_launch_application.");
 
   SIMIX_launch_application(file);
 
index 0987155..c0f8af0 100644 (file)
@@ -1006,7 +1006,7 @@ int simcall_comm_is_latency_bounded(smx_action_t comm)
 smx_mutex_t simcall_mutex_init(void)
 {
   if(!simix_global) {
-    fprintf(stderr,"You must run MSG_global_init or gras_init before using MSG or GRAS\n"); // I would have loved using xbt_die but I can't since it is not initialized yet... :)
+    fprintf(stderr,"You must run MSG_init or gras_init before using MSG or GRAS\n"); // I would have loved using xbt_die but I can't since it is not initialized yet... :)
     abort();
   }
   smx_simcall_t simcall = SIMIX_simcall_mine();