Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix in semaphore code
authorLionel <eyraud@etincel.(none)>
Thu, 6 Jun 2013 21:44:36 +0000 (23:44 +0200)
committerLionel <eyraud@etincel.(none)>
Thu, 6 Jun 2013 21:44:36 +0000 (23:44 +0200)
src/simix/smx_synchro.c

index 414b927..aee4eeb 100644 (file)
@@ -456,7 +456,6 @@ void SIMIX_sem_release(smx_sem_t sem)
 
   XBT_DEBUG("Sem release semaphore %p", sem);
   if ((proc = xbt_swag_extract(sem->sleeping))) {
-    proc = xbt_swag_extract(sem->sleeping);
     SIMIX_synchro_destroy(proc->waiting_action);
     proc->waiting_action = NULL;
     SIMIX_simcall_answer(&proc->simcall);