esp_idf_hal::sys

Function vTaskSetThreadLocalStoragePointer

Source
pub unsafe extern "C" fn vTaskSetThreadLocalStoragePointer(
    xTaskToSet: *mut tskTaskControlBlock,
    xIndex: i32,
    pvValue: *mut c_void,
)
Expand description

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.