RTEMS Self Task Deletion
Kamaraj P
pkamaraj at Centillium.com
Wed Sep 27 04:24:37 UTC 2006
Yes. I did the following !!
After task creation,
rtems_task_start()
if ( (status = rtems_task_ident(name, 0, &chk_taskId)) == RTEMS_SUCCESSFUL)
{
if (*taskId == chk_taskId)
return SUCCESS;
status = RTEMS_INVALID_NAME;
}
Please let me know any working in my code.
Thanks
Regards,
Kamaraj
-----Original Message-----
From: Chris Johns [mailto:chrisj at rtems.org]
Sent: Wednesday, September 27, 2006 9:44 AM
To: Kamaraj P
Cc: Fabrício de Novaes Kucinskis; rtems-users at rtems.com
Subject: Re: RTEMS Self Task Deletion
Kamaraj P wrote:
> Hello All,
>
> Here is my sample code for self task deletion.
> Please share your thoughts whether I am invoking self task deletion for this task or not.
>
> Main()
> {
> rtems_task_create(...,..,..,EntryPoint,..,..);
> }
>
> EntryPoint()
> {
> ...
> ...
> ...
> ...
>
> rtems_task_delete(RTEMS_SELF);
> }
>
> When I tried with above sample code, self task deletion is not working. The task is
> still exists in the memory. Please do update me the way I am invoking self task
> deletion is correct or not.
>
Did you start the task ?
Regards
Chris
More information about the users
mailing list