rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result );
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
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.
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.
Copyright © 1988-2003 OAR Corporation