diff options
Diffstat (limited to 'cpukit/rtems/src/taskvariable_invoke_dtor.c')
-rw-r--r-- | cpukit/rtems/src/taskvariable_invoke_dtor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/taskvariable_invoke_dtor.c b/cpukit/rtems/src/taskvariable_invoke_dtor.c index a23e5e56fa..51b9453d82 100644 --- a/cpukit/rtems/src/taskvariable_invoke_dtor.c +++ b/cpukit/rtems/src/taskvariable_invoke_dtor.c @@ -31,7 +31,7 @@ void _RTEMS_Tasks_Invoke_task_variable_dtor( void *value; dtor = tvp->dtor; - if (_Thread_Is_executing(the_thread)) { + if (_Thread_Get_executing() == the_thread) { value = *tvp->ptr; *tvp->ptr = tvp->gval; } else { |