1) Change type from int' to
void *'.
2) Add extra argument to task_variable_add -- if non-NULL, a pointer to
a `destructor' function to be called when the task exits. This function
would be called with that task's value of the task variable as its
argument. In many cases, the dtor' function could be
free'.
rtems_status_code rtems_task_variable_add (
rtems_id tid, void ptr, void (*dtor)(void *));
rtems_status_code rtems_task_variable_delete (rtems_id tid, void ptr);