* [Xenomai-core] do rt_task_create after a deletion
@ 2011-08-31 6:57 Roberto Bielli
2011-08-31 7:12 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Roberto Bielli @ 2011-08-31 6:57 UTC (permalink / raw)
To: xenomai
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.bielli@domain.hid
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: info@domain.hid
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.
+------------------------------------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] do rt_task_create after a deletion
2011-08-31 6:57 [Xenomai-core] do rt_task_create after a deletion Roberto Bielli
@ 2011-08-31 7:12 ` Gilles Chanteperdrix
2011-08-31 7:26 ` Roberto Bielli
0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2011-08-31 7:12 UTC (permalink / raw)
To: Roberto Bielli; +Cc: xenomai
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] do rt_task_create after a deletion
2011-08-31 7:12 ` Gilles Chanteperdrix
@ 2011-08-31 7:26 ` Roberto Bielli
2011-08-31 9:07 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Roberto Bielli @ 2011-08-31 7:26 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
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.bielli@domain.hid
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: info@domain.hid
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.
+------------------------------------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] do rt_task_create after a deletion
2011-08-31 7:26 ` Roberto Bielli
@ 2011-08-31 9:07 ` Gilles Chanteperdrix
0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2011-08-31 9:07 UTC (permalink / raw)
To: Roberto Bielli; +Cc: xenomai
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-31 9:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-31 6:57 [Xenomai-core] do rt_task_create after a deletion Roberto Bielli
2011-08-31 7:12 ` Gilles Chanteperdrix
2011-08-31 7:26 ` Roberto Bielli
2011-08-31 9:07 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.