OAR

RTEMS 4.5.1-pre3 On-Line Library


User Extensions Manager TASK_DELETE Extension

PREV UP NEXT Bookshelf RTEMS C User's Guide

21.2.3.4: TASK_DELETE Extension

The TASK_DELETE extension is associated with the task_delete directive. If this extension is defined in any static or dynamic extension set and a task is being deleted, then the extension routine will automatically be invoked by RTEMS. The extension should have a prototype similar to the following:

rtems_extension user_task_delete(
  rtems_tcb *current_task,
  rtems_tcb *deleted_task
);

where current_task can be used to access the TCB for the currently executing task, and deleted_task can be used to access the TCB for the task being deleted. This extension is invoked from the task_delete directive after the TCB has been removed from a ready TCB chain, but before all its resources including the TCB have been returned to their respective free pools. This extension should not call any RTEMS directives if a task is deleting itself (current_task is equal to deleted_task).


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2000 OAR Corporation