Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finally kill the memleak in the route parsing (I hope).
[simgrid.git] / src / xbt / xbt_context_thread.c
index 9173753..5a55df3 100644 (file)
@@ -284,10 +284,11 @@ static void xbt_ctx_thread_suspend(xbt_context_t context)
 
 static void xbt_ctx_thread_resume(xbt_context_t context)
 {
-  DEBUG1("Resume context '%s'",context->name);
   /* save the current context */
   xbt_context_t self = current_context;
 
+  DEBUG1("Resume context '%s'",context->name);
+
   /* update the current context */
   current_context = context;