git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4668
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
static void __xbt_context_yield(xbt_context_t context)
{
static void __xbt_context_yield(xbt_context_t context)
{
- xbt_assert0(current_context, "You have to call context_init() first.");
+ xbt_context_t self;
+xbt_assert0(current_context, "You have to call context_init() first.");
xbt_assert0(context,"Invalid argument");
if (current_context == context) {
xbt_assert0(context,"Invalid argument");
if (current_context == context) {
- xbt_context_t self = current_context;
+ self = current_context;
DEBUG2("[%p] **** Locking ctx %p ****", self, context);
xbt_os_mutex_lock(context->mutex);
DEBUG1("[%p] **** Updating current_context ****", self);
DEBUG2("[%p] **** Locking ctx %p ****", self, context);
xbt_os_mutex_lock(context->mutex);
DEBUG1("[%p] **** Updating current_context ****", self);