--- rpl/src/instructions_d5.c 2015/07/21 20:16:19 1.132 +++ rpl/src/instructions_d5.c 2015/10/23 09:58:50 1.135 @@ -1,6 +1,6 @@ /* ================================================================================ - RPL/2 (R) version 4.1.22 + RPL/2 (R) version 4.1.23 Copyright (C) 1989-2015 Dr. BERTRAND Joël This file is part of RPL/2. @@ -1088,13 +1088,13 @@ instruction_detach(struct_processus *s_e return; } - if (pthread_mutex_lock(&((*s_etat_processus).mutex_allocation_buffer)) != 0) + if (pthread_mutex_lock(&mutex_liste_variables_partagees) != 0) { (*s_etat_processus).erreur_systeme = d_es_processus; return; } - if (pthread_mutex_lock(&mutex_liste_variables_partagees) != 0) + if (pthread_mutex_lock(&((*s_etat_processus).mutex_allocation_buffer)) != 0) { (*s_etat_processus).erreur_systeme = d_es_processus; return;