version 1.97, 2011/11/24 14:24:49
|
version 1.99, 2011/11/26 13:05:03
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.4 |
RPL/2 (R) version 4.1.5 |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 2757 rplinit(int argc, char *argv[], unsigned
|
Line 2757 rplinit(int argc, char *argv[], unsigned
|
l_element_courant = (*s_etat_processus).liste_mutexes; |
l_element_courant = (*s_etat_processus).liste_mutexes; |
while(l_element_courant != NULL) |
while(l_element_courant != NULL) |
{ |
{ |
pthread_mutex_trylock(&((*((struct_mutex *) |
|
(*(*((struct_liste_chainee *) |
|
l_element_courant)).donnee).objet)).mutex)); |
|
pthread_mutex_unlock(&((*((struct_mutex *) |
|
(*(*((struct_liste_chainee *) |
|
l_element_courant)).donnee).objet)).mutex)); |
|
pthread_mutex_destroy(&((*((struct_mutex *) |
|
(*(*((struct_liste_chainee *) |
|
l_element_courant)).donnee).objet)).mutex)); |
|
|
|
liberation(s_etat_processus, |
liberation(s_etat_processus, |
(*((struct_liste_chainee *) |
(*((struct_liste_chainee *) |
l_element_courant)).donnee); |
l_element_courant)).donnee); |