version 1.55, 2013/03/23 16:14:39
|
version 1.62, 2014/04/25 07:37:32
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.13 |
RPL/2 (R) version 4.1.18 |
Copyright (C) 1989-2013 Dr. BERTRAND Joël |
Copyright (C) 1989-2014 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 142 instruction_mem(struct_processus *s_etat
|
Line 142 instruction_mem(struct_processus *s_etat
|
(*((integer8 *) (*((*((*((struct_liste_chainee *) |
(*((integer8 *) (*((*((*((struct_liste_chainee *) |
(*s_objet_resultat).objet)).suivant)).donnee)).objet)) = 0; |
(*s_objet_resultat).objet)).suivant)).donnee)).objet)) = 0; |
|
|
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 155 instruction_mem(struct_processus *s_etat
|
Line 149 instruction_mem(struct_processus *s_etat
|
{ |
{ |
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; |
|
} |
|
|
|
for(j = 0; j < nb_variables; j++) |
for(j = 0; j < nb_variables; j++) |
{ |
{ |
(*((integer8 *) (*((*((*((struct_liste_chainee *) (*s_objet_resultat) |
(*((integer8 *) (*((*((*((struct_liste_chainee *) (*s_objet_resultat) |
Line 909 instruction_mtxunlock(struct_processus *
|
Line 896 instruction_mtxunlock(struct_processus *
|
{ |
{ |
liberation(s_etat_processus, s_objet_argument); |
liberation(s_etat_processus, s_objet_argument); |
|
|
|
(*s_etat_processus).erreur_systeme = d_es_processus; |
|
return; |
|
} |
|
|
|
if (pthread_mutex_unlock(&((*((struct_mutex *) |
|
(*s_objet_argument).objet)).mutex)) != 0) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument); |
|
|
(*s_etat_processus).erreur_systeme = d_es_processus; |
(*s_etat_processus).erreur_systeme = d_es_processus; |
return; |
return; |
} |
} |