<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 13, 2016 at 3:27 AM, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 13/07/2016 4:16 PM, Sebastian Huber wrote:<br>
> Since this rtems_iterate_over_all_threads() is documented in the user<br>
> manual should we keep it as is and just add a new variant?<br>
<br>
</span>I would prefer we fix the current API because what you can do with it as<br>
it stands is limited.<br>
<br></blockquote><div><br></div><div>+1</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Locking the object allocator lock changes things and requires people<br>
review their usage. Maybe a change is a good thing.<br>
<span class=""><br></span></blockquote><div><br></div><div>There shouldn't be many (if any) external (outside our tree) uses of this</div><div>anyway. It might be a good way to find them.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> There is also a related ticket:<br>
><br>
> <a href="https://devel.rtems.org/ticket/2423" rel="noreferrer" target="_blank">https://devel.rtems.org/ticket/2423</a><br>
<br>
</span>Oh yes it is, I did not notice this. Hmmm.<br>
<br>
This is a difficult interface to place in the RTEMS API because it<br>
crosses a boundaries with the SCORE. The argument for the visitor<br>
function is an SCORE type and the function is declared in the SCORE's<br>
thread.h header which is not good to see slip into the code. I question<br>
it being documented here and this way.<br>
<br>
A user is exposed to any changes in the SCORE implementation of the<br>
Thread_Control so it is difficult to make this API always stable.<br>
<span class="HOEnZb"><font color="#888888"><br>
Chris<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br></div></div>