Diff for /rpl/src/instructions_m4.c between versions 1.33 and 1.34

version 1.33, 2011/09/20 09:51:42 version 1.34, 2011/09/20 14:36:29
Line 416  instruction_mtxlock(struct_processus *s_ Line 416  instruction_mtxlock(struct_processus *s_
             }              }
         }          }
   
         if (sem_post(&((*s_etat_processus).semaphore_fork)) != 0)  #       ifndef SEMAPHORES_NOMMES
               if (sem_post(&((*s_etat_processus).semaphore_fork)) != 0)
   #       else
               if (sem_post((*s_etat_processus).semaphore_fork) != 0)
   #       endif
         {          {
             (*s_etat_processus).erreur_systeme = d_es_processus;              (*s_etat_processus).erreur_systeme = d_es_processus;
             return;              return;
Line 425  instruction_mtxlock(struct_processus *s_ Line 429  instruction_mtxlock(struct_processus *s_
         if (pthread_mutex_lock(&((*((struct_mutex *) (*s_objet_argument).objet))          if (pthread_mutex_lock(&((*((struct_mutex *) (*s_objet_argument).objet))
                 .mutex)) != 0)                  .mutex)) != 0)
         {          {
             while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0)  #           ifndef SEMAPHORES_NOMMES
                   while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0)
   #           else
                   while(sem_wait((*s_etat_processus).semaphore_fork) != 0)
   #           endif
             {              {
                 if (errno != EINTR)                  if (errno != EINTR)
                 {                  {
Line 445  instruction_mtxlock(struct_processus *s_ Line 453  instruction_mtxlock(struct_processus *s_
             return;              return;
         }          }
   
         while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0)  #       ifndef SEMAPHORES_NOMMES
               while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0)
   #       else
               while(sem_wait((*s_etat_processus).semaphore_fork) != 0)
   #       endif
         {          {
             if (errno != EINTR)              if (errno != EINTR)
             {              {

Removed from v.1.33  
changed lines
  Added in v.1.34


CVSweb interface <joel.bertrand@systella.fr>