git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1686
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
static void __xbt_context_yield(xbt_context_t context)
{
- int return_value = 0;
-
xbt_assert0(current_context,"You have to call context_init() first.");
DEBUG2("--------- current_context (%p) is yielding to context(%p) ---------",
if(context) VOIRP(context->save);
if (context) {
if(context->save==NULL) {
+
+ int return_value = 0;
+
DEBUG0("**** Yielding to somebody else ****");
DEBUG2("Saving current_context value (%p) to context(%p)->save",current_context,context);
context->save = current_context ;