if (mutex->refcount) {
/* somebody using the mutex, block */
xbt_swag_insert(self, mutex->sleeping);
if (mutex->refcount) {
/* somebody using the mutex, block */
xbt_swag_insert(self, mutex->sleeping);
- xbt_context_yield();
- self->simdata->cond = NULL;
- while (self->simdata->suspended) {
- xbt_context_yield();
+ __SIMIX_process_yield();
+ self->cond = NULL;
+ while (self->suspended) {
+ __SIMIX_process_yield();
INFO0("Blocked process on this condition:");
xbt_swag_foreach(process, cond->sleeping) {
INFO2("\t %s running on host %s", process->name,
INFO0("Blocked process on this condition:");
xbt_swag_foreach(process, cond->sleeping) {
INFO2("\t %s running on host %s", process->name,