Function esp_idf_hal::sys::vTaskSetThreadLocalStoragePointer

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

Set local storage pointer specific to the given task.

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.

@param xTaskToSet Task to set thread local storage pointer for @param xIndex The index of the pointer to set, from 0 to configNUM_THREAD_LOCAL_STORAGE_POINTERS - 1. @param pvValue Pointer value to set.