rtems_iterate_over_all_threads

Joel Sherrill joel.sherrill at OARcorp.com
Wed Apr 22 13:54:15 UTC 2009


Leon Pollak wrote:
> On Wednesday April 22 2009, Thomas Dörfler wrote:
> > Leon,
> >
> > wouldn't it be better in that case to reaise your own priority beyond
> > all other tasks? This would make sure your task has the processor on its
> > own until it blocks (e.g. in an I/O operation).
> This is exactly the main goal I want to reach - to block all 
> uncontrolled (by this task) I/O operations.
>
>
> > When you suspend a bunch of tasks, you might even have to track, which
> > tasks already where suspended, to avoid that you resume a task that was
> > suspended by another piece of code...
> Hmmm... I thought that nested suspends are working... I mean, two 
> suspends and one resume will leave task suspended....
> Isn't it correct?
>
>
No.  RTEID/ORKID defined it as a single bit/state not a nest
level count.
> > wkr,
> > Thomas.
> Many 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