--- rpl/src/fusible.c 2011/09/14 14:34:28 1.32 +++ rpl/src/fusible.c 2011/10/10 16:39:00 1.35 @@ -1,6 +1,6 @@ /* ================================================================================ - RPL/2 (R) version 4.1.3 + RPL/2 (R) version 4.1.4 Copyright (C) 1989-2011 Dr. BERTRAND Joël This file is part of RPL/2. @@ -75,7 +75,11 @@ fusible(void *argument) temporisation.tv_sec = 0; temporisation.tv_nsec = 100000000; // un dixième de seconde + // Par défaut, le thread peut être annulé. + +# ifdef PTHREAD_CANCEL_ENABLE pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); +# endif getrusage(RUSAGE_SELF, &s_rusage); temps_cpu_courant = s_rusage.ru_utime.tv_sec +