X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0271bbd4c5cc3eb850e64d2b0169771103248a63..a5c439094f924970556f57605c6bab819ab73725:/src/simix/smx_synchro.c?ds=sidebyside diff --git a/src/simix/smx_synchro.c b/src/simix/smx_synchro.c index 46bb6b6b60..cabc1f481e 100644 --- a/src/simix/smx_synchro.c +++ b/src/simix/smx_synchro.c @@ -51,12 +51,12 @@ void SIMIX_mutex_lock(smx_mutex_t mutex) xbt_swag_insert(self, mutex->sleeping); self->mutex = mutex; /* wait for some process make the unlock and wake up me from mutex->sleeping */ - SIMIX_context_yield(); + __SIMIX_process_yield(); self->mutex = NULL; /* verify if the process was suspended */ while (self->suspended) { - SIMIX_context_yield(); + __SIMIX_process_yield(); } mutex->refcount = 1; @@ -213,10 +213,10 @@ void __SIMIX_cond_wait(smx_cond_t cond) self->cond = cond; xbt_swag_insert(self, cond->sleeping); - SIMIX_context_yield(); + __SIMIX_process_yield(); self->cond = NULL; while (self->suspended) { - SIMIX_context_yield(); + __SIMIX_process_yield(); } return;