Diff for /rpl/src/instructions_s10.c between versions 1.21 and 1.32

version 1.21, 2010/08/13 21:00:37 version 1.32, 2011/04/21 16:00:59
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.18    RPL/2 (R) version 4.1.0.prerelease.0
   Copyright (C) 1989-2010 Dr. BERTRAND Joël    Copyright (C) 1989-2011 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 90  instruction_spawn(struct_processus *s_et Line 90  instruction_spawn(struct_processus *s_et
         return;          return;
     }      }
   
 #   ifdef _BROKEN_SIGINFO  
     if ((*s_etat_processus).langue == 'F')  
     {  
         printf("+++Attention : Support des processus multiples indisponible\n");  
     }  
     else  
     {  
         printf("+++Attention : Multiprocess unavailable\n");  
     }  
   
     return;  
 #   endif  
   
     if (test_cfsf(s_etat_processus, 31) == d_vrai)      if (test_cfsf(s_etat_processus, 31) == d_vrai)
     {      {
         if (empilement_pile_last(s_etat_processus, 1) == d_erreur)          if (empilement_pile_last(s_etat_processus, 1) == d_erreur)
Line 361  instruction_spawn(struct_processus *s_et Line 348  instruction_spawn(struct_processus *s_et
     pthread_mutex_init(&((*s_argument_thread).mutex), &attributs_mutex);      pthread_mutex_init(&((*s_argument_thread).mutex), &attributs_mutex);
     pthread_mutexattr_destroy(&attributs_mutex);      pthread_mutexattr_destroy(&attributs_mutex);
   
       pthread_mutexattr_init(&attributs_mutex);
       pthread_mutexattr_settype(&attributs_mutex, PTHREAD_MUTEX_RECURSIVE);
       pthread_mutex_init(&((*s_argument_thread).mutex_nombre_references),
               &attributs_mutex);
       pthread_mutexattr_destroy(&attributs_mutex);
   
     (*s_argument_thread).processus_detache = d_faux;      (*s_argument_thread).processus_detache = d_faux;
     (*s_argument_thread).thread_actif = d_faux;      (*s_argument_thread).thread_actif = d_faux;
     (*s_argument_thread).thread_pere = pthread_self();      (*s_argument_thread).thread_pere = pthread_self();
Line 411  instruction_spawn(struct_processus *s_et Line 404  instruction_spawn(struct_processus *s_et
     }      }
   
 #   ifndef OS2  #   ifndef OS2
   #   ifndef Cygwin
     if (pthread_attr_setschedpolicy(&attributs, SCHED_OTHER) != 0)      if (pthread_attr_setschedpolicy(&attributs, SCHED_OTHER) != 0)
     {      {
         (*s_etat_processus).erreur_systeme = d_es_processus;          (*s_etat_processus).erreur_systeme = d_es_processus;
Line 429  instruction_spawn(struct_processus *s_et Line 423  instruction_spawn(struct_processus *s_et
         return;          return;
     }      }
 #   endif  #   endif
   #   endif
   
     /*      /*
      * Création de l'objet à retourner       * Création de l'objet à retourner
Line 512  instruction_spawn(struct_processus *s_et Line 507  instruction_spawn(struct_processus *s_et
     }      }
   
 #   ifndef OS2  #   ifndef OS2
   #   ifndef Cygwin
     if (pthread_attr_setschedpolicy(&attributs, SCHED_OTHER) != 0)      if (pthread_attr_setschedpolicy(&attributs, SCHED_OTHER) != 0)
     {      {
         (*s_etat_processus).erreur_systeme = d_es_processus;          (*s_etat_processus).erreur_systeme = d_es_processus;
Line 531  instruction_spawn(struct_processus *s_et Line 527  instruction_spawn(struct_processus *s_et
         return;          return;
     }      }
 #   endif  #   endif
   #   endif
   
     // Attente de l'affectation de la grandeur processus.tid par le thread fils.      // Attente de l'affectation de la grandeur processus.tid par le thread fils.
   

Removed from v.1.21  
changed lines
  Added in v.1.32


CVSweb interface <joel.bertrand@systella.fr>