From: mquinson Date: Wed, 4 Jun 2008 19:30:36 +0000 (+0000) Subject: Ops, sorry windows. I'll stick to ANSI X-Git-Tag: v3.3~419 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1a73f7f292dcbb309a16a06a71202618502c34d7 Ops, sorry windows. I'll stick to ANSI git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5540 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_context_thread.c b/src/xbt/xbt_context_thread.c index bc29e1c572..9173753b81 100644 --- a/src/xbt/xbt_context_thread.c +++ b/src/xbt/xbt_context_thread.c @@ -267,10 +267,11 @@ static void *xbt_ctx_thread_wrapper(void *param) static void xbt_ctx_thread_suspend(xbt_context_t context) { - DEBUG1("Suspend context '%s'",context->name); /* save the current context */ xbt_context_t self = current_context; + DEBUG1("Suspend context '%s'",context->name); + /* update the current context to this context */ current_context = context;