diff options
author | Anton Staaf <robotboy@chromium.org> | 2015-05-13 13:24:52 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-26 19:36:15 +0000 |
commit | a0ebf0a008670ece41529a2fce01882192331c6e (patch) | |
tree | af15cc38acca1fa811d819aa327abcc7d415552a /chip/host | |
parent | 2a4ac55edfbbbdcde605c323e07effcca5716e6f (diff) | |
download | chrome-ec-a0ebf0a008670ece41529a2fce01882192331c6e.tar.gz |
Queue: Add policies to queues
Policies give a convenient place to hook into the queue operations
and notify something that there is new space free in the queue or
new units added.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Change-Id: I94b2aa94b8e8d07911191bc19a39fa827623b117
Reviewed-on: https://chromium-review.googlesource.com/271791
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Trybot-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'chip/host')
-rw-r--r-- | chip/host/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/host/uart.c b/chip/host/uart.c index afde763747..989112be80 100644 --- a/chip/host/uart.c +++ b/chip/host/uart.c @@ -26,7 +26,7 @@ static pthread_t input_thread; #define INPUT_BUFFER_SIZE 16 static int char_available; -QUEUE_CONFIG(cached_char, INPUT_BUFFER_SIZE, char); +static struct queue const cached_char = QUEUE_NULL(INPUT_BUFFER_SIZE, char); #define CONSOLE_CAPTURE_SIZE 2048 static char capture_buf[CONSOLE_CAPTURE_SIZE]; |