--- rpl/src/fusible.c 2010/08/06 15:32:58 1.13 +++ rpl/src/fusible.c 2011/05/09 13:52:11 1.20.2.3 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.0.18 - Copyright (C) 1989-2010 Dr. BERTRAND Joël + RPL/2 (R) version 4.0.24 + Copyright (C) 1989-2011 Dr. BERTRAND Joël This file is part of RPL/2. @@ -40,6 +40,8 @@ void * fusible(void *argument) { +# ifndef OS2 + real8 temps_cpu_precedent; real8 temps_cpu_courant; @@ -85,9 +87,7 @@ fusible(void *argument) temporisation.tv_sec = 0; temporisation.tv_nsec = 100000000; // un dixième de seconde -# ifndef OS2 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); -# endif getrusage(RUSAGE_SELF, &s_rusage); temps_cpu_courant = s_rusage.ru_utime.tv_sec + @@ -97,7 +97,6 @@ fusible(void *argument) { pthread_testcancel(); nanosleep(&temporisation, NULL); - getrusage(RUSAGE_SELF, &s_rusage); temps_cpu_precedent = temps_cpu_courant; @@ -134,6 +133,22 @@ fusible(void *argument) 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); }