mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-28 16:46:31 +03:00
Replace the eTaskGetState() polling guard in prvTaskDeleteWithCaps() with a per-core xTaskGetCurrentTaskHandleForCore() check, so the predicate matches vTaskDelete()'s immediate-vs-deferred decision. This closes the taskTASK_SCHEDULED_TO_YIELD race against the IDLE-deferred TCB cleanup on the SMP preview kernel; behaviour is unchanged on the default IDF kernel and on single-core targets.