RTEMS Logo

RTEMS 4.7.2 On-Line Library


User Extensions Manager TASK_EXITTED Extension

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

21.2.3.7: TASK_EXITTED Extension

The TASK_EXITTED extension is invoked when a task exits the body of the starting procedure by either an implicit or explicit return statement. This user extension have a prototype similar to the following:

procedure User_Task_Exitted (
   Current_Task : in     RTEMS.TCB_Pointer
);

where current_task can be used to access the TCB for the currently executing task which has just exitted.

Although exiting of task is often considered to be a fatal error, this extension allows recovery by either restarting or deleting the exiting task. If the user does not wish to recover, then a fatal error may be reported. If the user does not provide a TASK_EXITTED extension or the provided handler returns control to RTEMS, then the RTEMS default handler will be used. This default handler invokes the directive fatal_error_occurred with the RTEMS.TASK_EXITTED directive status.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2004 OAR Corporation