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] [September 2016 Threads]
xQueueRemoveItem does not exist. (but would be useful)
This is a function I need in the case where I just want to pull an item off the queue and discard it - IE I dont want to copy it or do anything with it. This is a case where I am trying to maintain a filling level of buffers to 50% (remove for packets to dry up, or flood in ) .
I pass a NULL pointer to QueueReceive() instead
I modified prvCopyDataFromQueue to not call MEMCPY if pvBuffer was NULL;
and in xQueueGenericReceive
I also removed the assert check for pvBuffer == NULL
This of course could be dangerous for callers that do not intentionally set pvBuffer to NULL...
I could copy the fn with some different params.
glen
At the moment the convoluted asserts in some of the queue functions are
designed to only allow you to pass in a null pointer if the queue is in
fact a semaphore (semaphores not having any data associated with them -
only the count is of interest).
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.