version 1.51, 2013/03/23 16:14:39
|
version 1.52, 2013/03/24 13:42:44
|
Line 1496 instruction_vars(struct_processus *s_eta
|
Line 1496 instruction_vars(struct_processus *s_eta
|
} |
} |
|
|
/* |
/* |
* Préparation du drapeau PRIVATE/SHARED |
* Préparation du drapeau PRIVATE/SHARED/MAPPED |
*/ |
*/ |
|
|
if (((*(*(*(*(*((struct_liste_chainee *) (*((struct_objet *) |
if (((*(*(*(*(*((struct_liste_chainee *) (*((struct_objet *) |
Line 1533 instruction_vars(struct_processus *s_eta
|
Line 1533 instruction_vars(struct_processus *s_eta
|
{ |
{ |
if (((*(*(*(*(*(*(*((struct_liste_chainee *) (*((struct_objet *) |
if (((*(*(*(*(*(*(*((struct_liste_chainee *) (*((struct_objet *) |
(*l_element_courant).donnee)).objet)).suivant).suivant) |
(*l_element_courant).donnee)).objet)).suivant).suivant) |
|
.suivant).suivant).suivant).donnee).objet = malloc(7 * |
|
sizeof(unsigned char))) == NULL) |
|
{ |
|
if (tableau[i].mutex != NULL) |
|
{ |
|
// La variable est une variable partagée. On libère |
|
// le mutex. |
|
pthread_mutex_unlock(tableau[i].mutex); |
|
} |
|
|
|
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
|
return; |
|
} |
|
|
|
strcpy((unsigned char *) (*(*(*(*(*(*(*((struct_liste_chainee *) |
|
(*((struct_objet *) (*l_element_courant).donnee)).objet)) |
|
.suivant).suivant).suivant).suivant).suivant).donnee).objet, |
|
"MAPPED"); |
|
} |
|
else if (tableau[i].mutex != NULL) |
|
{ |
|
if (((*(*(*(*(*(*(*((struct_liste_chainee *) (*((struct_objet *) |
|
(*l_element_courant).donnee)).objet)).suivant).suivant) |
.suivant).suivant).suivant).donnee).objet = malloc(7 * |
.suivant).suivant).suivant).donnee).objet = malloc(7 * |
sizeof(unsigned char))) == NULL) |
sizeof(unsigned char))) == NULL) |
{ |
{ |