diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-03 07:38:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-04 07:24:30 +0200 |
commit | 1d40d81b4b8dd50e4162b0b79b60d3312d2744e5 (patch) | |
tree | 9c7dc074ea705a924742d965dcd22afef579cb5b /cpukit/rtems/src/taskvariable_invoke_dtor.c | |
parent | bsp/mvme5500: Use thread local variable (diff) | |
download | rtems-1d40d81b4b8dd50e4162b0b79b60d3312d2744e5.tar.bz2 |
rtems: Remove task variables
Update #2494.
Update #2555.
Diffstat (limited to 'cpukit/rtems/src/taskvariable_invoke_dtor.c')
-rw-r--r-- | cpukit/rtems/src/taskvariable_invoke_dtor.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/cpukit/rtems/src/taskvariable_invoke_dtor.c b/cpukit/rtems/src/taskvariable_invoke_dtor.c deleted file mode 100644 index b9213f2bd6..0000000000 --- a/cpukit/rtems/src/taskvariable_invoke_dtor.c +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @file - * - * @brief RTEMS Tasks Invoke Task Variable Destructor - * @ingroup ClassicTasks - */ - -/* - * COPYRIGHT (c) 1989-2014. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#if !defined(RTEMS_SMP) -#include <rtems/rtems/tasksimpl.h> -#include <rtems/score/threadimpl.h> -#include <rtems/score/wkspace.h> - -/* - * We know this is deprecated and don't want a warning on every BSP built. - */ -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" - -void _RTEMS_Tasks_Invoke_task_variable_dtor( - Thread_Control *the_thread, - rtems_task_variable_t *tvp -) -{ - void (*dtor)(void *); - void *value; - - dtor = tvp->dtor; - if (_Thread_Get_executing() == the_thread) { - value = *tvp->ptr; - *tvp->ptr = tvp->gval; - } else { - value = tvp->tval; - } - - if ( dtor ) - (*dtor)(value); - - _Workspace_Free(tvp); -} -#endif |