Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

vTaskList and INCLUDE_vTaskDelete dependency

Posted 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 dependency

Posted 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.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS