mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-27 04:55:53 +00:00
vTaskRemoveFromUnorderedEventList() runs under the assumption that the scheduler is suspended during the call. However, for IDF FreeRTOS, this is not true. When dual-core system is active, this API call is made in a critical section but without suspending the scheduler. This commit updates the vTaskRemoveFromUnorderedEventList() function to now consider the scheduler state on either cores before adding a task to the ready list.