OAR

RTEMS 4.5.1-pre3 On-Line Library


Task Manager TASK_VARIABLE_GET - Obtain value of a per task variable

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

5.4.16: TASK_VARIABLE_GET - Obtain value of a per task variable

CALLING SEQUENCE:

procedure Task_Variable_Get (
   Id          : in     RTEMS.ID;
   Ptr         : in     RTEMS.Address;
   Value       :    out RTEMS.Address;
   Result      :    out RTEMS.Status_Codes
);

DIRECTIVE STATUS CODES:

RTEMS.SUCCESSFUL - per task variable added successfully
RTEMS.INVALID_ID - invalid task id
RTEMS.NO_MEMORY - invalid task id
RTEMS.ILLEGAL_ON_REMOTE_OBJECT - not supported on remote tasks

DESCRIPTION:

This directive looks up the private value of a task variable for a specified task and stores that value in the location pointed to by the result argument. The specified task is usually not the calling task, which can get its private value by directly accessing the variable.

NOTES:

If you change memory which result points to, remember to declare that memory as volatile, so that the compiler will optimize it correctly. In this case both the pointer result and data referenced by result should be considered volatile.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2000 OAR Corporation