summaryrefslogtreecommitdiff
path: root/test/vboot.tasklist
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2019-10-25 12:45:21 -0600
committerCommit Bot <commit-bot@chromium.org>2020-02-05 13:39:53 +0000
commit82b3aa3c8087febb13463cca2832736c49fe6c8e (patch)
treecc13c72ddd8279b31a5034e3e49134f469a03554 /test/vboot.tasklist
parent69cb58587af634dea9bd349fbc4c35ba639e2f3f (diff)
downloadchrome-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/vboot.tasklist')
0 files changed, 0 insertions, 0 deletions