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] [March 2008 Threads] quence conceptsPosted by krishna kumar on March 1, 2008 hi, I am woking on freeRTOS,where i using quence concept when my quencecreate is not created inside my for loop but when i use quence create outside for loop quence is created correctly but resources are not shared properly where my demo application working properly...wht its works properly....
xQueue = xQueueCreate( 10,sizeof( unsigned portLONG ));)//where q is created properly bt not sharing resources properly
for(;;) { xQueue = xQueueCreate( 10, sizeof( unsigned portLONG ) );)//where q is not created if( xQueue != 0 { if(xQueueSend( xQueue,( void * ) &ulVar, ( portTickType ) 10 ) ==1 ) { k++; } } }
RE: quence conceptsPosted by Richard on March 1, 2008 If you create a queue each time round a for loop without deleting any of the created queues then you will eventually run out of memory and not be able to create any more queues.
I'm not sure what you mean by "where q is created properly bt not sharing resources properly" - what do you mean by not sharing the resource properly?
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|