--- rpl/src/interruptions.c 2013/03/21 12:07:38 1.122 +++ rpl/src/interruptions.c 2013/03/24 22:06:10 1.123 @@ -2952,6 +2952,12 @@ envoi_signal_thread(pthread_t tid, enum struct_processus *s_etat_processus; + if (pthread_mutex_lock(&mutex_interruptions) != 0) + { + pthread_mutex_unlock(&mutex_liste_threads); + return(1); + } + if (pthread_mutex_lock(&mutex_liste_threads) != 0) { return(1); @@ -2975,12 +2981,6 @@ envoi_signal_thread(pthread_t tid, enum { pthread_mutex_unlock(&mutex_liste_threads); return(1); - } - - if (pthread_mutex_lock(&mutex_interruptions) != 0) - { - pthread_mutex_unlock(&mutex_liste_threads); - return(1); } s_etat_processus = (*((struct_thread *) (*l_element_courant).donnee))