do rt_task_create after a deletion
Hi,
if i don't want to use rt_task_join to wait termination on a task, is it correct to use rt_task_create and wait until the return value is different from -EEXIST after a deletion?
Thanks for all
Signature · 33 lines
+------------------------------------------------------------------------------------------------+ Roberto Bielli Sviluppo Software Axel S.r.l. Via Del Cannino, 3 21020 Crosio Della Valle Varese - Italy Telefono: +39 0332 949600 Fax: +39 0332 969315 E-mail: [email protected] Web Site: www.axelsw.it +------------------------------------------------------------------------------------------------+ Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Informativa sul trattamento dei dati personali (D. Lgs. 196/2003). I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento, per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi. Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected] This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.Thank you. +------------------------------------------------------------------------------------------------+
Quoted 3 lines · Roberto Bielli
Hi,
if i don't want to use
rt_task_jointo wait termination on a task,
Then do not create the task with the T_JOINABLE flag.
Quoted 3 lines
is it
correct to usert_task_createand wait until the return value is different from-EEXISTafter a deletion?
I am not sure rt_task_create returns EEXIST when a task has been deleted but not joined. But in any case, the answer is no, a joinable task will not be joined automatically, only rt_task_join will cause it to be joined.
Signature · 1 line
Gilles.
Hi,
i explain better. if i don't use rt_task_join i remove the flag T_JOINABLE, so i wait the task termination with a rt_task_create that return -EEXIST.
Thanks
Il 31/08/2011 09:12, Gilles Chanteperdrix ha scritto:
Quoted 13 lines · Roberto Bielli
Quoted 3 lines
Hi,
if i don't want to use
rt_task_jointo wait termination on a task,Then do not create the task with the
T_JOINABLEflag.Quoted 3 lines
is it
correct to usert_task_createand wait until the return value is different from-EEXISTafter a deletion?I am not sure
rt_task_createreturns EEXIST when a task has been deleted but not joined. But in any case, the answer is no, a joinable task will not be joined automatically, onlyrt_task_joinwill cause it to be joined.
Signature · 33 lines
+------------------------------------------------------------------------------------------------+ Roberto Bielli Sviluppo Software Axel S.r.l. Via Del Cannino, 3 21020 Crosio Della Valle Varese - Italy Telefono: +39 0332 949600 Fax: +39 0332 969315 E-mail: [email protected] Web Site: www.axelsw.it +------------------------------------------------------------------------------------------------+ Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Informativa sul trattamento dei dati personali (D. Lgs. 196/2003). I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento, per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi. Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected] This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.Thank you. +------------------------------------------------------------------------------------------------+
Quoted 5 lines · Roberto Bielli
Hi,
i explain better. if i don't use
rt_task_joini remove the flagT_JOINABLE, so i wait the task termination with art_task_createthat return-EEXIST.
The only way to wait for a thread to have freed all resources (notably its stack) is to create it with T_JOINABLE and join it.
Signature · 1 line
Gilles.