Thanks.
So for the code:
--------------------------------------------------------------------------------------------------
for (i = 0; i < CPU_COUNT; ++i) {
const Per_CPU_Control *c;
const Thread_Control *h;
c = _Per_CPU_Get_by_index(CPU_COUNT - 1 - i);
h = c->heir;
sc = rtems_task_suspend(h->Object.id);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
}
--------------------------------------------------------------------------------------------------
would it have the same effect if we replace all this by :
for (i = CPU_COUNT -1 ; i >=0 ; --i) {
sc = rtems_task_suspend(ctx->task_ids[i]);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
}
--------------------------------------------------------------------------------------------------
Please let me know.
On Tue, Aug 4, 2020 at 7:17 PM Sebastian Huber <
[email protected]> wrote:
> On 04/08/2020 14:25, Richi Dubey wrote:
>
> > This helps. Thank you.
> If things are still unclear, don't hesitate to ask again. Your questions
> are really helpful to improve the documentation.
>
> _______________________________________________
> devel mailing list
> [email protected]
> http://lists.rtems.org/mailman/listinfo/devel
>
_______________________________________________
devel mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/devel