Re: More elaborate k_fifo API?


Paul Sokolovsky
 

On Sat, 1 Apr 2017 14:16:12 +0300
Paul Sokolovsky <Paul.Sokolovsky@linaro.org> wrote:

[]

as long as fifo would allow me to wait until it becomes non-empty
This appears to be the hardest part. I see that put/get processing is
optimized in such a way that if there's already a thread waiting on
fifo, than new item isn't put into the fifo, but is delivered directly
to the waiting thread. I wasn't able to undo this optimization and
make sure than a put item always goes thru a fifo.

--
Best Regards,
Paul

Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog

Join devel@lists.zephyrproject.org to automatically receive all group messages.