diff options
Diffstat (limited to 'cpukit/rtems/src/tasks.c')
-rw-r--r-- | cpukit/rtems/src/tasks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c index e9d7954c50..b7eadbea8a 100644 --- a/cpukit/rtems/src/tasks.c +++ b/cpukit/rtems/src/tasks.c @@ -109,8 +109,8 @@ User_extensions_routine _RTEMS_tasks_Delete_extension( while (tvp) { next = tvp->next; if (tvp->dtor) - (*tvp->dtor)(*tvp->ptr ); - if (executing == deleted) + (*tvp->dtor)(*tvp->ptr); + if (_Thread_Is_executing(deleted)) *tvp->ptr = tvp->gval; _Workspace_Free( tvp ); tvp = next; |