I have used a programming idiom where I want to xQueuePeek()
a message queue, and attempt to send the message. If the send succeeds, then I want to drop the message from the queue. At the moment, the only way to drop the message from the queue is to call xQueueReceive()
, with a non-NULL value for pvBuffer
.
It would be good if xQueueReceive()
would accept a NULL
value for pvBuffer
, allowing it to drop the next entry in the queue without the overhead of copying it to a buffer.