xbt_mutex_lock(context->mutex);
DEBUG1("[%p] **** Updating current_context ****", self);
current_context = context;
DEBUG1("[%p] **** Releasing the prisonner ****", self);
xbt_thcond_signal(context->cond);
xbt_mutex_lock(context->mutex);
DEBUG1("[%p] **** Updating current_context ****", self);
current_context = context;
DEBUG1("[%p] **** Releasing the prisonner ****", self);
xbt_thcond_signal(context->cond);