Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify process cleanup calls between SIMIX and MSG
authorthiery <thiery@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 24 Feb 2011 14:24:41 +0000 (14:24 +0000)
committerthiery <thiery@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 24 Feb 2011 14:24:41 +0000 (14:24 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9715 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/m_process.c
src/simix/smx_context_base.c

index b54f233..046f73c 100644 (file)
@@ -43,7 +43,6 @@ void MSG_process_cleanup_from_SIMIX(smx_process_t smx_proc)
 #endif
 
   xbt_free(msg_proc);
-  SIMIX_req_process_cleanup(smx_proc);
 }
 
 /* This function creates a MSG process. It has the prototype enforced by SIMIX_function_register_process_create */
index 5403bd8..27443d5 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "xbt/function_types.h"
 #include "simix/context.h"
+#include "simix/process_private.h"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(bindings);
 
@@ -86,6 +87,7 @@ void smx_ctx_base_stop(smx_context_t context)
 {
   if (context->cleanup_func)
     (*(context->cleanup_func)) (context->data);
+  SIMIX_process_cleanup(context->data);
 }
 
 smx_context_t smx_ctx_base_self(void)