Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ansi C declaration of the variables (at the beginning of the blocks)
[simgrid.git] / src / xbt / xbt_main.c
index fff55bc..6023ad0 100644 (file)
@@ -36,8 +36,8 @@ xbt_init(int *argc, char **argv) {
   VERB0("Initialize XBT");
   
   xbt_log_init(argc,argv);
-  xbt_thread_mod_init();
-  xbt_context_init();
+  xbt_os_thread_mod_init();
+  xbt_context_mod_init();
 }
 
 /** @brief Finalize the xbt mechanisms. */
@@ -47,10 +47,10 @@ xbt_exit(){
   if (xbt_initialized == 0) {
     xbt_fifo_exit();
     xbt_dict_exit();
-    xbt_context_exit();
-    xbt_thread_mod_exit();
+    xbt_context_mod_exit();
+    xbt_os_thread_mod_exit();
+    xbt_log_exit();
   }
-  xbt_log_exit();
    
   if (xbt_initialized == 0)
     free(xbt_binary_name);