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) ---------",
VOIRP(context);
if(context) VOIRP(context->save);
if (context) {
+
+ int return_value = 0;
+
if(context->save==NULL) {
DEBUG0("**** Yielding to somebody else ****");
DEBUG2("Saving current_context value (%p) to context(%p)->save",current_context,context);