Function esp_idf_svc::sys::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.