version 1.14, 2010/06/09 12:19:13
|
version 1.16, 2010/06/24 10:10:45
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.16 |
RPL/2 (R) version 4.0.17 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
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; |