rtems_iterate_over_all_threads

Leon Pollak leonp at plris.com
Wed Apr 22 13:55:28 UTC 2009


On Wednesday April 22 2009, Joel Sherrill wrote:
> > Will not it be better to add a parameter to
> > rtems_iterate_over_all_threads saying to avoid myself ID while iterating?
>
> You could call rtems_task_self() or just compare the TCB to
> _Thread_Executing.

Usage of the _Thread_Executing->Object.iditem, which is the RTEMS internal 
parameter seems to me not a good programmer practice.

What is rtems_task_self()? I do not see it in my 4.8.0 version.
Was it introduced later?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20090422/097a6957/attachment.html>


More information about the users mailing list