Function esp_idf_sys::xTaskGetCurrentTaskHandleForCore

source ยท
pub unsafe extern "C" fn xTaskGetCurrentTaskHandleForCore(
    xCoreID: BaseType_t,
) -> TaskHandle_t
Expand description

@brief Get the handle of the task currently running on a certain core

Because of the nature of SMP processing, there is no guarantee that this value will still be valid on return and should only be used for debugging purposes.

[refactor-todo] See if this needs to be deprecated (IDF-8145)

@note If CONFIG_FREERTOS_SMP is enabled, please call xTaskGetCurrentTaskHandleCPU() instead. @param xCoreID The core to query @return Handle of the current task running on the queried core