Function esp_idf_svc::hal::sys::vPortTCBPreDeleteHook

source ·
pub unsafe extern "C" fn vPortTCBPreDeleteHook(pxTCB: *mut c_void)
Expand description

@brief TCB cleanup hook

The portCLEAN_UP_TCB() macro is called in prvDeleteTCB() right before a deleted task’s memory is freed. We map that macro to this internal function so that IDF FreeRTOS ports can inject some task pre-deletion operations.

@note We can’t use vPortCleanUpTCB() due to API compatibility issues. See CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP. Todo: IDF-8097