On Fri, 23 Sep 2016, Andy Ross wrote:
Korovkin, Dmitriy (Wind River) wrote (on Friday, September 23, 2016 12:33PM):
- move the ring buffers declaration to include/kernel.h and chage routineThat sounds more like a hybrid between a ring buffer (a data
names according to the public API naming convention;
- pend writing threads for a certain timeout if no space available;
- pend reading threads (with timeout) if the buffer is empty.
structure) and a fifo (an IPC mechanism). I think there's value for a
generic buffer for bytewise streamlike data which isn't tied to a
particular idea of syncronization. Maybe split them up and have a
"stream" IPC abstraction that the user can wrap around a ring buffer
User can always add a semaphore. Or specify K_NO_WAIT as a timeout value.