#55 Function to pop queue item without receiving it

closed
nobody
None
5
2014-12-27
2012-03-31
Anonymous
No

It would be nice to have queue function which removes item form the queue like xQueueReceive() does but ignores its content. It's like contra xQueuePeek(). Alternative way is to make xQueueReceive() allow to accept NULL value as pvBuffer argument.
It's useful when task must receive item to fulfill application synced behavior requirements and ignore it but developer doesn't want to waste memory. Especially when item size is very large.

Discussion

  • I believe there are numerous ways of achieving this with the later FreeRTOS versions, including semaphores (size is 0), task rendezvous, event groups, and most recently (in v8.2.0 which at the time of writing is available as a release candidate) task notifications.

     
    • status: open --> closed
    • Group: --> Next Release (example)