xmos / fwk_rtos

RTOS Framework
Other
8 stars 20 forks source link

FreeRTOS pending task deletion cleanup #3

Open keithm-xmos opened 3 years ago

keithm-xmos commented 3 years ago

When a task deletes itself, cleanup occurs during the next idle task run. If no idle task runs, the deleted task will remain. Pending the cleanup portion will allow a task to be cleaned up once the context switch is complete.

keithm-xmos commented 3 years ago

This is a FreeRTOS kernel issue that we will not address. But, we need to keep this in mind in case we can come up with a better solution.