Is there any particular reason the INCLUDE_vTaskDelete check could not be moved to the xTasksWaitingTermination code in vTaskList(), instead of being a complete enable/disable for vTaskList()? Other than to update a deleted tasks status in the vTaskList() output, it does not appear that vTaskList actually needs task deletion capability to do it’s job. Disclaimer: I’m pretty new to the FreeRTOS code base, and I could likely be missing something here. --jc
As you point out – there is no technical reason, it was just a style thing. The original intention was to avoid having preprocessor directives within the functions themselves. This was an attempt to keep the code readable. As time has gone on the it has become harder to stick to the rule. Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.