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] [October 2012 Threads] Overwriting existing item of queuePosted by Dennis Borgmann on October 11, 2012 Hi!
Is there a chance to write a value into a queue of one item size while overwriting the existing item? Or do i have to empty a queue first, before i can fill in a new item?
Thanks a lot, Dennis
RE: Overwriting existing item of queuePosted by Richard on October 11, 2012 There is not currently a method of overwriting queue items, but it is a good idea and I will look into adding it in.
Regards.
RE: Overwriting existing item of queuePosted by Dennis Borgmann on October 11, 2012 Oh, very good, Richard! I'd be pleased to see it.
While you're at it, maybe you could also implement an ISR-equivalent for
xQueuePeek()
So, it'd be nice to check for an item inside a Queue without removing it and doing so without timeout. Just - "Is there an item? Ah, take it, but leave it" or "Is there an item? No. Well then - never mind..."
Thanks again, Dennis
RE: Overwriting existing item of queuePosted by Richard on October 11, 2012 Please add both these items to the feature request tracker (in SourceForge). Thanks.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|