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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner