]> begriffs open source - cmsis-freertos/commit
Correct osThreadGetState to return osThreadError when called for a thread previously...
authorVladimir Umek <vladimir.umek@arm.com>
Thu, 14 Apr 2022 11:38:42 +0000 (13:38 +0200)
committerVladimir Umek <vladimir.umek@arm.com>
Thu, 14 Apr 2022 11:38:42 +0000 (13:38 +0200)
commit9cf2e4b4f621abfed0ee2de421d31988f8b1b0f6
tree0a3e9c2beef5c081229323a97fffcc9a9c4053fe
parent4a7368cdcadfb88b1e60a94861a0d6f4510302f3
Correct osThreadGetState to return osThreadError when called for a thread previously terminated with osThreadTerminate

FreeRTOS tasks when terminated/deleted cannot be further used by any other API and therefore appear
as non-existing to application. Hence state osThreadError is returned instead of osThreadTerminated
even though the TCB may still be in a xTasksWaitingTermination list.
ARM.CMSIS-FreeRTOS.pdsc
CMSIS/RTOS2/FreeRTOS/Source/cmsis_os2.c
DoxyGen/General/src/cmsis_freertos.txt