]> git.proxmox.com Git - mirror_qemu.git/commit
coroutine: use QSIMPLEQ instead of QTAILQ
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 4 Jul 2016 17:09:59 +0000 (19:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Jul 2016 11:26:02 +0000 (13:26 +0200)
commit7d9c8581370738fb3877a724ac061e6a8cd00121
tree9d3a8a6c126d03457189166249eb8e077845157f
parent5af7045bd0d45cff5c8eb0a3b14b900d9bd24998
coroutine: use QSIMPLEQ instead of QTAILQ

CoQueue do not need to remove any element but the head of the list;
processing is always strictly FIFO.  Therefore, the simpler singly-linked
QSIMPLEQ can be used instead.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/qemu/coroutine.h
include/qemu/coroutine_int.h
util/qemu-coroutine-lock.c
util/qemu-coroutine.c