From 47619e4bb47a259821ad1b37cca80a91184fe79c Mon Sep 17 00:00:00 2001 From: cristianrosa Date: Mon, 17 Aug 2009 13:49:25 +0000 Subject: [PATCH] Fixed bug in smx_context_mod_exit. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6574 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_context.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/simix/smx_context.c b/src/simix/smx_context.c index 314b988361..868354753c 100644 --- a/src/simix/smx_context.c +++ b/src/simix/smx_context.c @@ -42,16 +42,6 @@ void SIMIX_context_mod_exit(void) { if (simix_global->context_factory) { smx_pfn_context_factory_finalize_t finalize_factory; - - /* Check that there are no living process or to destroy */ - xbt_assert0((simix_global->process_list == NULL), - "There are living process!"); - - xbt_assert0((simix_global->process_to_destroy == NULL), - "There are process to destroy!"); - - xbt_assert0((simix_global->maestro_process == NULL), - "The maestro process is alive!"); /* finalize the context factory */ finalize_factory = simix_global->context_factory->finalize; @@ -74,19 +64,19 @@ int SIMIX_context_select_factory(const char *name) if (strcmp(simix_global->context_factory->name, name)){ SIMIX_process_killall(); - + /* kill maestro process */ SIMIX_context_free(simix_global->maestro_process->context); free(simix_global->maestro_process); simix_global->maestro_process = NULL; - + SIMIX_context_mod_exit(); } else /* the same context factory is requested return directly */ return 0; } - + /* init the desired factory */ SIMIX_context_init_factory_by_name(&simix_global->context_factory, name); -- 2.20.1