[Xenomai-core] do rt_task_create after a deletion

2011-08-31 Thread Roberto Bielli

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

--
++

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:   roberto.bie...@axelsw.it  
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: i...@axelsw.it

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. 

++


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] do rt_task_create after a deletion

2011-08-31 Thread Gilles Chanteperdrix
On 08/31/2011 08:57 AM, Roberto Bielli wrote:
 Hi,
 
 if i don't want to use rt_task_join to wait termination on a task,

Then do not create the task with the T_JOINABLE flag.

 is it 
 correct to use rt_task_create and wait until the return value is 
 different from -EEXIST after 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.

-- 
Gilles.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] do rt_task_create after a deletion

2011-08-31 Thread Roberto Bielli

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:

On 08/31/2011 08:57 AM, Roberto Bielli wrote:

Hi,

if i don't want to use rt_task_join to wait termination on a task,

Then do not create the task with the T_JOINABLE flag.


is it
correct to use rt_task_create and wait until the return value is
different from -EEXIST after 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.




--
++

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:   roberto.bie...@axelsw.it  
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: i...@axelsw.it

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. 

++


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] do rt_task_create after a deletion

2011-08-31 Thread Gilles Chanteperdrix
On 08/31/2011 09:26 AM, Roberto Bielli wrote:
 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.

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.

-- 
Gilles.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core