]> begriffs open source - freertos/commit
Update xTaskGetIdleTaskHandle() For SMP (#868)
authorDarian <32921628+Dazza0@users.noreply.github.com>
Tue, 5 Dec 2023 06:31:11 +0000 (14:31 +0800)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 06:31:11 +0000 (14:31 +0800)
commitcd5c774b2bda6eeec55862f79e164843508e96d9
treea2e1bd09b458dd504245f7850cc57a052b2cbb19
parentc0ce725293bb8cf9b30626a8bba173af33163533
Update xTaskGetIdleTaskHandle() For SMP (#868)

* Update xTaskGetIdleTaskHandle() in SMP

This commit updates xTaskGetIdleTaskHandle() for SMP in the following ways:

- xTaskGetIdleTaskHandle() no longer accepts xCoreID argument in SMP so that
there is not change in API between single-core and SMP
- xTaskGetIdleTaskHandle() now returns the Active idle task handle in SMP,
which matches the behavior in single-core.
- Added xTaskGetIdleTaskHandleForCore() in SMP which accepts an xCoreID
argument. This function can be used to obtain the Passive idle task handles.

* Update xTaskGetIdleTaskHandle

---------

Co-authored-by: Ching-Hsin Lee <chinglee@amazon.com>
Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
include/FreeRTOS.h
include/task.h
tasks.c