Diff for /rpl/src/fusible.c between versions 1.6 and 1.22

version 1.6, 2010/04/07 13:45:02 version 1.22, 2011/04/21 16:00:54
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.14    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 20 Line 20
 */  */
   
   
 #include "rpl.conv.h"  #include "rpl-conv.h"
   
   
 /*  /*
Line 40 Line 40
 void *  void *
 fusible(void *argument)  fusible(void *argument)
 {  {
   #   ifndef OS2
   
     real8                   temps_cpu_precedent;      real8                   temps_cpu_precedent;
     real8                   temps_cpu_courant;      real8                   temps_cpu_courant;
   
Line 56  fusible(void *argument) Line 58  fusible(void *argument)
     sigemptyset(&masque);      sigemptyset(&masque);
     sigaddset(&masque, SIGINJECT);      sigaddset(&masque, SIGINJECT);
     sigaddset(&masque, SIGFSTOP);      sigaddset(&masque, SIGFSTOP);
       sigaddset(&masque, SIGFABORT);
     sigaddset(&masque, SIGURG);      sigaddset(&masque, SIGURG);
     sigaddset(&masque, SIGALRM);      sigaddset(&masque, SIGALRM);
     sigaddset(&masque, SIGCONT);      sigaddset(&masque, SIGCONT);
Line 94  fusible(void *argument) Line 97  fusible(void *argument)
     {      {
         pthread_testcancel();          pthread_testcancel();
         nanosleep(&temporisation, NULL);          nanosleep(&temporisation, NULL);
   
         getrusage(RUSAGE_SELF, &s_rusage);          getrusage(RUSAGE_SELF, &s_rusage);
   
         temps_cpu_precedent = temps_cpu_courant;          temps_cpu_precedent = temps_cpu_courant;
Line 131  fusible(void *argument) Line 133  fusible(void *argument)
         fflush(stdout);          fflush(stdout);
     }      }
   
   #   else
   
       struct_processus        *s_etat_processus;
   
       s_etat_processus = argument;
   
       if ((*s_etat_processus).langue == 'F')
       {
           printf("+++Attention : Support indisponible sous OS/2\n");
       }
       else
       {
           printf("+++Warning : Function unavailable\n");
       }
   #   endif
   
     pthread_exit(NULL);      pthread_exit(NULL);
 }  }
   

Removed from v.1.6  
changed lines
  Added in v.1.22


CVSweb interface <joel.bertrand@systella.fr>