diff options
author | Anton Staaf <robotboy@chromium.org> | 2015-02-18 14:43:52 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-24 00:27:50 +0000 |
commit | 1a0235e69ff197cb1add08ffaa38ba1470db8cbc (patch) | |
tree | 3ec35670076ace67898e9f9cc75fca44ddfd064f /board/ryu_p1/battery.c | |
parent | fc144e940ca89a020880645a823d5c2258aae8c4 (diff) | |
download | chrome-ec-1a0235e69ff197cb1add08ffaa38ba1470db8cbc.tar.gz |
Streams: Define a lower level abstraction for queue access
This adds a new pair of interfaces called producer and consumer
which are simpler (in that they don't hold onto the underlying
queue) than the stream interfaces. This makes it easier to
share a single queue between the endpoints that will manipulate
it. It was not possible to share a queue between two objects
that implemented the in_stream and out_stream interfaces.
This also adds a pair of adaptors that can convert a producer
or consumer into a stream of the correct type. These adaptors
will be used for existing code once the usb-stream and usart
drivers are converted over to use the producer/consumer
interfaces instead of the stream interfaces.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Change-Id: I42b4b1ac15cca28e1adc6d3cea315f15e17a0b4d
Reviewed-on: https://chromium-review.googlesource.com/250941
Trybot-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'board/ryu_p1/battery.c')
0 files changed, 0 insertions, 0 deletions