[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rtems_iterate_over_all_threads



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://rtems.rtems.org/pipermail/rtems-users/attachments/20090422/097a6957/attachment.html