Quality RTOS & Embedded Software

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


Loading

calling prvCheckTasksWaitingTermination

Posted by Wildcard on April 21, 2008
Hello,
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.

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.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

New FAQ page about the FreeRTOS kernel and Amazon FreeRTOS.


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

Xilinx Microblaze and Zynq partner