FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [July 2007 Threads] vTaskList and INCLUDE_vTaskDelete dependencyPosted by JC on July 1, 2007 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
RE: vTaskList and INCLUDE_vTaskDelete dependencyPosted by Richard on July 1, 2007 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.
|