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 /test/queue.c | |
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 'test/queue.c')
-rw-r--r-- | test/queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/queue.c b/test/queue.c index d5d499377b..7196663943 100644 --- a/test/queue.c +++ b/test/queue.c @@ -12,8 +12,8 @@ #include "timer.h" #include "util.h" -QUEUE_CONFIG(test_queue8, 8, char) -QUEUE_CONFIG(test_queue2, 2, int16_t) +static struct queue const test_queue8 = QUEUE_NULL(8, char); +static struct queue const test_queue2 = QUEUE_NULL(2, int16_t); static int test_queue8_empty(void) { |