rtems_iterate_over_all_threads

Joel Sherrill joel.sherrill at OARcorp.com
Wed Apr 22 13:33:34 UTC 2009


Leon Pollak wrote:
> Hello, all.
>
>
> I was glad to find the new rtems_iterate_over_all_threads API function 
> - a useful thing in my case. What I want is to suspend temporary all 
> tasks (except this which issues this command) and then, later, may be 
> resume them.
>
>
> Great! But then I found a real obstacle to do this - to avoid myself 
> suspension I need to compare myself ID with the "current" ID. For 
> this, in turn, I need to use rtems_task_ident... Too complex and time 
> consuming!
>
>
> 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. 
> Thanks.
> -- 
> Leon


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list