version 1.33, 2011/09/26 15:57:10
|
version 1.34, 2011/10/04 19:32:35
|
Line 75 fusible(void *argument)
|
Line 75 fusible(void *argument)
|
temporisation.tv_sec = 0; |
temporisation.tv_sec = 0; |
temporisation.tv_nsec = 100000000; // un dixième de seconde |
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); |
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); |
|
# endif |
|
|
getrusage(RUSAGE_SELF, &s_rusage); |
getrusage(RUSAGE_SELF, &s_rusage); |
temps_cpu_courant = s_rusage.ru_utime.tv_sec + |
temps_cpu_courant = s_rusage.ru_utime.tv_sec + |