diff options
author | Yuval Peress <peress@chromium.org> | 2019-10-25 12:45:21 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-05 13:39:53 +0000 |
commit | 82b3aa3c8087febb13463cca2832736c49fe6c8e (patch) | |
tree | cc13c72ddd8279b31a5034e3e49134f469a03554 /test/timer_jump.tasklist | |
parent | 69cb58587af634dea9bd349fbc4c35ba639e2f3f (diff) | |
download | chrome-ec-82b3aa3c8087febb13463cca2832736c49fe6c8e.tar.gz |
common: queue: Add ability to iterate over queue
This is done via:
* queue_begin(q) gets an iterator to the start of the list
* queue_next(q, &it) updates the iterator to the next element
** Once the iterator reaches the end, ptr will be NULL.
** If the queue was modified between the _begin and _next calls
queue_next will terminate the iterator (set the ptr to NULL).
BUG=None
TEST=New unit tests
BRANCH=None
Change-Id: I643f544ed91bafac8e8b4c85545d4070f2d82610
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1879715
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'test/timer_jump.tasklist')
0 files changed, 0 insertions, 0 deletions