--- rpl/src/gestion_processus.c 2016/03/15 16:31:14 1.83 +++ rpl/src/gestion_processus.c 2016/07/21 15:22:52 1.85 @@ -83,6 +83,7 @@ surveillance_processus(void *argument) BUG(1, uprintf("General mutex error!\n")); } + nombre_thread_surveillance_processus++; insertion_thread_surveillance(s_etat_processus, s_argument_thread); if (pthread_mutex_unlock(&((*s_etat_processus).mutex_pile_processus)) != 0) @@ -1427,6 +1428,7 @@ surveillance_processus(void *argument) } retrait_thread_surveillance(s_etat_processus, s_argument_thread); + nombre_thread_surveillance_processus--; if (pthread_mutex_unlock(&((*s_etat_processus) .mutex_pile_processus)) != 0) @@ -1436,7 +1438,6 @@ surveillance_processus(void *argument) } pthread_exit(NULL); - return(NULL); }