<div dir="ltr"><div>Hi,<br><br></div><div>Ok, so i enclosed the child thread call to rtems_task_wait_after() in a never ending for loop expecting no error to be thrown (as the thread never returns) and i still end up in _Internal_error_Occured from _Thread_Handler.<br>
<br></div><div>This is all in 4.10.2. I've run the following several times now, same result, i dont see how the rtems_task_wake_after() is breaking out of the for(;;) to return. But looking at the executing->Start->entry_point in _Thread_Handler test_wake_after() was the last task run.<br>
<br></div><div><br></div><div>-------------- snip -------------<br></div><div><br>rtems_task test_wake_after(rtems_task_argument ignored)<br><div>
{<br></div><div> for(;;)<br> {<br></div><div> rtems_task_wake_after(10);<br><br></div><div> /* application code happening on interval here */<br></div><div> }<br>}<br><br>rtems_task Init( rtems_task_argument ignored )<br>
{<br> rtems_status_code status;<br> rtems_id id;<br><br> status = rtems_task_create( "wake_after",<br> 23,<br>
1024,<br> RTEMS_DEFAULT_MODES,<br> RTEMS_FLOATING_POINT | RTEMS_DEFAULT_ATTRIBUTES,<br> &id<br> );<br><br> status = rtems_task_start(id, test_wake_after, NULL);<br><br></div><div> rtems_task_delete(RTEMS_SELF);<br>
</div><div>}</div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 April 2013 15:52, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/02/2013 04:45 PM, Matthew J Fletcher wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
rtems_task test_wake_after(rtems_task_<u></u>argument ignored)<br>
{<br>
rtems_task_wake_after(10);<br>
}<br>
</blockquote>
<br>
This will result in an internal error once the rtems_task_wake_after() returns. You can use this:<br>
<br>
rtems_task test_wake_after(rtems_task_<u></u>argument ignored)<br>
{<br>
rtems_task_wake_after(10);<div class="HOEnZb"><div class="h5"><br>
rtems_task_delete(RTEMS_SELF);<br>
}<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : <a href="tel:%2B49%2089%20189%2047%2041-16" value="+4989189474116" target="_blank">+49 89 189 47 41-16</a><br>
Fax : <a href="tel:%2B49%2089%20189%2047%2041-09" value="+4989189474109" target="_blank">+49 89 189 47 41-09</a><br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-<u></u>brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
______________________________<u></u>_________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/<u></u>listinfo/rtems-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><br>regards</div><div>---</div><div>Matthew J Fletcher</div><br>
</div>