Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify process cleanup calls between SIMIX and MSG
[simgrid.git] / src / simix / smx_context_base.c
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)