Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simix: fix an infinite recursion when calling xbt_thread_cancel()
authorChristophe Thiéry <christopho128@gmail.com>
Wed, 20 Apr 2011 16:17:33 +0000 (18:17 +0200)
committerChristophe Thiéry <christopho128@gmail.com>
Wed, 20 Apr 2011 16:17:33 +0000 (18:17 +0200)
src/simix/smx_context_base.c

index 1d06cc6..cdaa87a 100644 (file)
@@ -87,6 +87,7 @@ void smx_ctx_base_stop(smx_context_t context)
 {
   if (context->cleanup_func)
     (*(context->cleanup_func)) (context->data);
+  context->iwannadie = 0;
   SIMIX_req_process_cleanup(context->data);
 }