[PATCH] Add a user argument to 'rtems_iterate_over_all_threads'.
Chris Johns
chrisj at rtems.org
Wed Jul 13 08:27:53 UTC 2016
On 13/07/2016 4:16 PM, Sebastian Huber wrote:
> Since this rtems_iterate_over_all_threads() is documented in the user
> manual should we keep it as is and just add a new variant?
I would prefer we fix the current API because what you can do with it as
it stands is limited.
Locking the object allocator lock changes things and requires people
review their usage. Maybe a change is a good thing.
> There is also a related ticket:
>
> https://devel.rtems.org/ticket/2423
Oh yes it is, I did not notice this. Hmmm.
This is a difficult interface to place in the RTEMS API because it
crosses a boundaries with the SCORE. The argument for the visitor
function is an SCORE type and the function is declared in the SCORE's
thread.h header which is not good to see slip into the code. I question
it being documented here and this way.
A user is exposed to any changes in the SCORE implementation of the
Thread_Control so it is difficult to make this API always stable.
Chris
More information about the devel
mailing list