Function esp_idf_svc::hal::sys::xTaskGetNext
source ยท pub unsafe extern "C" fn xTaskGetNext(
xIterator: *mut TaskIterator,
) -> i32
Expand description
@brief Get the next task using the task iterator.
This function retrieves the next task in the traversal sequence.
@param xIterator Pointer to the task iterator structure.
@return Index of the current task list. Returns -1 if all tasks have been traversed.
@note The task iterator keeps track of the current state during task traversal, including the index of the current task list and the pointer of the next task list item. When all tasks have been traversed, this function returns -1. If a broken or corrupted task is encountered, the task handle is set to NULL.