RTEMS Self Task Deletion
Chris Johns
chrisj at rtems.org
Wed Sep 27 04:40:34 UTC 2006
Kamaraj P wrote:
> Yes. I did the following !!
> After task creation,
> rtems_task_start()
/* wait for a period of time */
usleep (1000000);
> 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.
>
You may need to block the thread starting the new task in order for the
new task to run. The addition I have made does this. Note, this is not
always the case and depends on the priorities and the pre-emption state
of the starting task.
Regards
Chris
More information about the users
mailing list