version 1.11, 2010/05/24 10:58:35
|
version 1.15, 2010/06/19 15:54:51
|
Line 459 instruction_spawn(struct_processus *s_et
|
Line 459 instruction_spawn(struct_processus *s_et
|
|
|
(*s_argument_thread).set = set; |
(*s_argument_thread).set = set; |
(*s_argument_thread).oldset = oldset; |
(*s_argument_thread).oldset = oldset; |
|
(*s_argument_thread).thread_actif = d_faux; |
|
|
if (pthread_create(&thread_id, &attributs, lancement_thread, |
if (pthread_create(&thread_id, &attributs, lancement_thread, |
s_argument_thread) != 0) |
s_argument_thread) != 0) |
Line 467 instruction_spawn(struct_processus *s_et
|
Line 468 instruction_spawn(struct_processus *s_et
|
return; |
return; |
} |
} |
|
|
|
attente.tv_sec = 0; |
|
attente.tv_nsec = GRANULARITE_us * 1000; |
|
|
|
while((*s_argument_thread).thread_actif == d_faux) |
|
{ |
|
nanosleep(&attente, NULL); |
|
INCR_GRANULARITE(attente.tv_nsec); |
|
} |
|
|
if (pthread_attr_destroy(&attributs) != 0) |
if (pthread_attr_destroy(&attributs) != 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_processus; |
(*s_etat_processus).erreur_systeme = d_es_processus; |