version 1.48, 2013/03/23 16:14:39
|
version 1.50, 2013/04/01 15:29:37
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.13 |
RPL/2 (R) version 4.1.14 |
Copyright (C) 1989-2013 Dr. BERTRAND Joël |
Copyright (C) 1989-2013 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 511 instruction_prusr(struct_processus *s_et
|
Line 511 instruction_prusr(struct_processus *s_et
|
} |
} |
} |
} |
|
|
if (pthread_mutex_lock(&mutex_liste_variables_partagees) != 0) |
|
{ |
|
(*s_etat_processus).erreur_systeme = d_es_processus; |
|
return; |
|
} |
|
|
|
nb_variables = nombre_variables(s_etat_processus); |
nb_variables = nombre_variables(s_etat_processus); |
|
|
if ((tableau = malloc(((size_t) nb_variables) * |
if ((tableau = malloc(((size_t) nb_variables) * |
Line 524 instruction_prusr(struct_processus *s_et
|
Line 518 instruction_prusr(struct_processus *s_et
|
{ |
{ |
liberation_mutexes_arbre_variables_partagees(s_etat_processus, |
liberation_mutexes_arbre_variables_partagees(s_etat_processus, |
(*(*s_etat_processus).s_arbre_variables_partagees)); |
(*(*s_etat_processus).s_arbre_variables_partagees)); |
pthread_mutex_unlock(&mutex_liste_variables_partagees); |
|
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
return; |
return; |
} |
} |
|
|
nb_variables = liste_variables(s_etat_processus, tableau); |
nb_variables = liste_variables(s_etat_processus, tableau); |
|
|
if (pthread_mutex_unlock(&mutex_liste_variables_partagees) != 0) |
|
{ |
|
(*s_etat_processus).erreur_systeme = d_es_processus; |
|
return; |
|
} |
|
|
|
s_objet.type = CHN; |
s_objet.type = CHN; |
|
|
for(i = 0; i < nb_variables; i++) |
for(i = 0; i < nb_variables; i++) |