traverse all items i na queue with xQueuePeek

stoikos
Posts: 31
Joined: Mon Aug 06, 2018 4:38 am

traverse all items i na queue with xQueuePeek

Postby stoikos » Fri Oct 26, 2018 8:10 pm

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?


stoikos
Posts: 31
Joined: Mon Aug 06, 2018 4:38 am

Re: traverse all items i na queue with xQueuePeek

Postby stoikos » Fri Oct 26, 2018 9:54 pm

I have read this article but I was hoping for a better solution than 'go and implement a thread safe double linked list' ;)

Who is online

Users browsing this forum: Google [Bot], Marcosss and 95 guests