Page 1 of 1

traverse all items i na queue with xQueuePeek

Posted: Fri Oct 26, 2018 8:10 pm
by stoikos
I am finding myself in need of a function to "peek" at the items in the queue (not restricted to only the first item), but without removing these items. So tried to use xQueuePeek but it seems that this function only returns the first item so it is identical to queue->front. Is there a way to do peek at all items in the queue without removing them?

Re: traverse all items i na queue with xQueuePeek

Posted: Fri Oct 26, 2018 9:31 pm
by WiFive

Re: traverse all items i na queue with xQueuePeek

Posted: Fri Oct 26, 2018 9:54 pm
by stoikos
I have read this article but I was hoping for a better solution than 'go and implement a thread safe double linked list' ;)