diff options
Diffstat (limited to 'cpukit/rtems/src/tasks.c')
-rw-r--r-- | cpukit/rtems/src/tasks.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c index 78d50db831..cfa849c1ae 100644 --- a/cpukit/rtems/src/tasks.c +++ b/cpukit/rtems/src/tasks.c @@ -111,15 +111,7 @@ User_extensions_routine _RTEMS_tasks_Delete_extension( deleted->task_variables = NULL; while (tvp) { next = (rtems_task_variable_t *)tvp->next; - if (_Thread_Is_executing(deleted)) { - if (tvp->dtor) - (*tvp->dtor)(*tvp->ptr); - *tvp->ptr = tvp->gval; - } else { - if (tvp->dtor) - (*tvp->dtor)(tvp->tval); - } - _Workspace_Free( tvp ); + _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); tvp = next; } |