Quality RTOS & Embedded Software

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


calling prvCheckTasksWaitingTermination

Posted by Wildcard on April 21, 2008
iam trying to restart a task in my app. First i delete the task and then i create a new one of this type. I know that the idle task will clean up the memory, but what if the idle-task can not run anytime.
What could go wrong if i call prvCheckTasksWaitingTermination(...) right after deleting the task manually from a user-level "control" task?
In my App unfortunatly the idle task is always starved of microcontroller processing time :(

Thank you.

RE: calling prvCheckTasksWaitingTermination

Posted by Richard on April 23, 2008
I don't see a problem with this, although I should remove the call from the idle task to ensure there are no conflicts with both your task and the idle task accessing the data structures at the same time. You would also have to make prvCheckTasksWaitingTermination() public, rather than static.

Search the forum for other solutions to this. There was a discussion within the last month or two.


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


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


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