diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-03 12:55:43 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-04 14:27:27 -0500 |
commit | d507c0373168e6375b1e876d79730bff8020cb58 (patch) | |
tree | 1ca65b27019e70bdeef2e7d01357cfdbae2a0d5b /cpukit/score/include/rtems/score/thread.h | |
parent | rhealstone/rhmlatency: Fix configuration (diff) | |
download | rtems-d507c0373168e6375b1e876d79730bff8020cb58.tar.bz2 |
Disable per task variables when SMP is enabled
Per task variables are inherently unsafe in SMP systems. This
patch disables them from the build and adds warnings in the
appropriate documentation and configuration sections.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 1fc5076d0a..2765f56286 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -171,6 +171,7 @@ typedef enum { */ typedef void (*Thread_CPU_budget_algorithm_callout )( Thread_Control * ); +#if !defined(RTEMS_SMP) /** * @brief Forward reference to the per task variable structure.. * @@ -197,6 +198,7 @@ typedef struct { /** This field points to the destructor for this per task variable. */ void (*dtor)(void *); } rtems_task_variable_t; +#endif /** * The following structure contains the information which defines @@ -567,8 +569,10 @@ struct Thread_Control_struct { /** This field points to the user extension pointers. */ void **extensions; +#if !defined(RTEMS_SMP) /** This field points to the set of per task variables. */ rtems_task_variable_t *task_variables; +#endif /** * This is the thread key value chain's control, which is used |