A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Factorize code for mutex locks.
[simgrid.git]
/
src
/
xbt
/
xbt_main.c
diff --git
a/src/xbt/xbt_main.c
b/src/xbt/xbt_main.c
index
3b453c6
..
653546a
100644
(file)
--- a/
src/xbt/xbt_main.c
+++ b/
src/xbt/xbt_main.c
@@
-89,30
+89,22
@@
static void xbt_preinit(void)
mmalloc_preinit();
#endif
xbt_log_preinit();
mmalloc_preinit();
#endif
xbt_log_preinit();
-
xbt_backtrace_preinit();
xbt_os_thread_mod_preinit();
xbt_fifo_preinit();
xbt_dict_preinit();
xbt_backtrace_preinit();
xbt_os_thread_mod_preinit();
xbt_fifo_preinit();
xbt_dict_preinit();
-
atexit(xbt_postexit);
}
static void xbt_postexit(void)
{
xbt_backtrace_postexit();
atexit(xbt_postexit);
}
static void xbt_postexit(void)
{
xbt_backtrace_postexit();
-
xbt_fifo_postexit();
xbt_dict_postexit();
xbt_fifo_postexit();
xbt_dict_postexit();
-
xbt_os_thread_mod_postexit();
xbt_os_thread_mod_postexit();
-
xbt_dynar_free(&xbt_cmdline);
xbt_dynar_free(&xbt_cmdline);
-
xbt_log_postexit();
xbt_log_postexit();
-
free(xbt_binary_name);
free(xbt_binary_name);
-
#ifdef MMALLOC_WANT_OVERRIDE_LEGACY
mmalloc_postexit();
#endif
#ifdef MMALLOC_WANT_OVERRIDE_LEGACY
mmalloc_postexit();
#endif