diff options
author | Gedare Bloom <gedare@rtems.org> | 2015-03-10 15:28:19 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2015-03-10 15:46:59 -0400 |
commit | cf4045630e1dd59221c67005ca1652b4350ad8eb (patch) | |
tree | c9c6e3336d043821b6bbda26b3851172a72fcf89 /cpukit | |
parent | cpukit: deprecate rtems_clock_get(). closes #2294. (diff) | |
download | rtems-cf4045630e1dd59221c67005ca1652b4350ad8eb.tar.bz2 |
cpukit: deprecate task variables. closes #2293.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/tasks.h | 12 | ||||
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/tasksimpl.h | 4 | ||||
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 3 |
3 files changed, 15 insertions, 4 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h index 237ec19093..dc12d0bdeb 100644 --- a/cpukit/rtems/include/rtems/rtems/tasks.h +++ b/cpukit/rtems/include/rtems/rtems/tasks.h @@ -462,6 +462,8 @@ rtems_status_code rtems_task_is_suspended( /** * @brief RTEMS Add Task Variable * + * @deprecated Task variables are deprecated. + * * This directive adds a per task variable. * * @note This service is not available in SMP configurations. @@ -470,11 +472,13 @@ rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) -); +) RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; /** * @brief Get a per-task variable * + * @deprecated Task variables are deprecated. + * * This directive gets the value of a task variable. * * @note This service is not available in SMP configurations. @@ -483,11 +487,13 @@ rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result -); +) RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; /** * @brief RTEMS Delete Task Variable * + * @deprecated Task variables are deprecated. + * * This directive removes a per task variable. * * @note This service is not available in SMP configurations. @@ -495,7 +501,7 @@ rtems_status_code rtems_task_variable_get( rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr -); +) RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; #endif #if defined(__RTEMS_HAVE_SYS_CPUSET_H__) diff --git a/cpukit/rtems/include/rtems/rtems/tasksimpl.h b/cpukit/rtems/include/rtems/rtems/tasksimpl.h index 280be2fac8..b8f91d3607 100644 --- a/cpukit/rtems/include/rtems/rtems/tasksimpl.h +++ b/cpukit/rtems/include/rtems/rtems/tasksimpl.h @@ -70,13 +70,15 @@ void _RTEMS_tasks_Initialize_user_tasks( void ); /** * @brief RTEMS Tasks Invoke Task Variable Destructor * + * @deprecated Task variables are deprecated. + * * This routine invokes the optional user provided destructor on the * task variable and frees the memory for the task variable. */ void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp -); +) RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; #endif RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate(void) diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 0bebb4ed0d..2b4e27fd2a 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -1823,6 +1823,8 @@ const rtems_libio_helper rtems_fs_init_helper = /** * This macro calculates the memory required for task variables. * + * @deprecated Task variables are deprecated. + * * Each task variable is individually allocated from the Workspace. * Hence, we do the multiplication on the configured size. * @@ -1839,6 +1841,7 @@ const rtems_libio_helper rtems_fs_init_helper = #define CONFIGURE_MAXIMUM_TASK_VARIABLES 0 #define CONFIGURE_MEMORY_FOR_TASK_VARIABLES(_task_variables) 0 #else + #warning "Per-Task Variables are deprecated and will be removed." #define CONFIGURE_MEMORY_FOR_TASK_VARIABLES(_task_variables) \ (_task_variables) * \ _Configure_From_workspace(sizeof(rtems_task_variable_t)) |