Doubt in rtems_task_wake_after

Richi Dubey richidubey at gmail.com
Thu Nov 19 06:12:38 UTC 2020


Hi,

In the program tm24
<https://git.rtems.org/rtems/tree/testsuites/tmtests/tm24/task1.c>, the
Init task creates
<https://git.rtems.org/rtems/tree/testsuites/tmtests/tm24/task1.c#n47> only
1 HIGH task that executes (after Init task finishes) the High_task function
and then the Init task creates
<https://git.rtems.org/rtems/tree/testsuites/tmtests/tm24/task1.c#n61> 100
REST or LOOP task which execute (After High_task finishes) the Tasks
function.

Then, how can the High_task call
<https://git.rtems.org/rtems/tree/testsuites/tmtests/tm24/task1.c#n90>
rtems_task_wake_after
100 times? Shouldn't it exit right after a single call
to rtems_task_wake_after, since the function yields the processor that is
held by the executing thread?

Please let me know how this works.

Thanks,
Richi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201119/55f30e30/attachment.html>


More information about the devel mailing list