[PATCH] Add a user argument to 'rtems_iterate_over_all_threads'.
Joel Sherrill
joel at rtems.org
Wed Jul 13 08:40:36 UTC 2016
On Wed, Jul 13, 2016 at 3:27 AM, Chris Johns <chrisj at rtems.org> wrote:
> 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.
>
>
+1
> Locking the object allocator lock changes things and requires people
> review their usage. Maybe a change is a good thing.
>
>
There shouldn't be many (if any) external (outside our tree) uses of this
anyway. It might be a good way to find them.
> > 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
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160713/649dde2d/attachment-0002.html>
More information about the devel
mailing list