RTEMS Logo

RTEMS 4.6.1 On-Line Library


User Extensions Manager TASK_BEGIN Extension

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

21.2.3.6: TASK_BEGIN Extension

The TASK_BEGIN extension is invoked when a task begins execution. It is invoked immediately before the body of the starting procedure and executes in the context in the task. This user extension have a prototype similar to the following:

procedure User_Task_Begin (
   Current_Task : in     RTEMS.TCB_Pointer
);

where current_task can be used to access the TCB for the currently executing task which has begun. The distinction between the TASK_BEGIN and TASK_START extension is that the TASK_BEGIN extension is executed in the context of the actual task while the TASK_START extension is executed in the context of the task performing the task_start directive. For most extensions, this is not a critical distinction.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2004 OAR Corporation