git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9840
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
MSG_error_t MSG_clean(void)
{
-// Exit the LIB host_lib
-xbt_lib_free(&host_lib);
-xbt_lib_free(&link_lib);
-xbt_lib_free(&as_router_lib);
-
-
#ifdef HAVE_TRACING
TRACE_surf_release();
#endif
SIMIX_clean();
+ // Exit the LIB host_lib
+ xbt_lib_free(&host_lib);
+ xbt_lib_free(&link_lib);
+ xbt_lib_free(&as_router_lib);
+
return MSG_OK;
}
xbt_swag_free(sd_global->done_task_set);
xbt_swag_free(sd_global->failed_task_set);
+ XBT_DEBUG("Exiting Surf...");
+ surf_exit();
+
// Exit the LIB host_lib
xbt_lib_free(&host_lib);
xbt_lib_free(&link_lib);
jedule_sd_cleanup();
#endif
- XBT_DEBUG("Exiting Surf...");
- surf_exit();
-
} else {
XBT_WARN("SD_exit() called, but SimDag is not running");
/* we cannot use exceptions here because xbt is not running! */