diff options
author | rtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2015-01-26 17:40:35 +0000 |
---|---|---|
committer | rtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2015-01-26 17:40:35 +0000 |
commit | d4e40b21cd2242d249db82c7429762e61b188e22 (patch) | |
tree | 155677328aedb506bf938b80a3e933e00a0ec4ba /FreeRTOS/Source/include/task.h | |
parent | 8b7f1535c59eb7181661fee61539ffb477048c57 (diff) | |
download | freertos-d4e40b21cd2242d249db82c7429762e61b188e22.tar.gz |
Kernel updates:
- Add user configurable thread local storage array, with get/set access function.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2328 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS/Source/include/task.h')
-rw-r--r-- | FreeRTOS/Source/include/task.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/FreeRTOS/Source/include/task.h b/FreeRTOS/Source/include/task.h index bce009b12..77e9eb6be 100644 --- a/FreeRTOS/Source/include/task.h +++ b/FreeRTOS/Source/include/task.h @@ -1158,6 +1158,18 @@ constant. */ #endif /* configUSE_APPLICATION_TASK_TAG ==1 */
#endif /* ifdef configUSE_APPLICATION_TASK_TAG */
+#if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 )
+
+ /* Each task contains an array of pointers that is dimensioned by the
+ configNUM_THREAD_LOCAL_STORAGE_POINTERS setting in FreeRTOSConfig.h. The
+ kernel does not use the pointers itself, so the application writer can use
+ the pointers for any purpose they wish. The following two functions are
+ used to set and query a pointer respectively. */
+ void vTaskSetThreadLocalStoragePointer( TaskHandle_t xTaskToSet, BaseType_t xIndex, void *pvValue );
+ void *pvTaskGetThreadLocalStoragePointer( TaskHandle_t xTaskToQuery, BaseType_t xIndex );
+
+#endif
+
/**
* task.h
* <pre>BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter );</pre>
|