summary refs log tree commit diff stats
path: root/hw/qxl-render.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-02-20 11:28:31 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-21 16:17:31 -0600
commitd0c8d2c05f67a1a007d87fa3b99254abfa42d06d (patch)
treeada60845139760d25723bb77ba0c105b023dbd04 /hw/qxl-render.c
parent9cbaacf999b01b27dc3a22502705178057af66de (diff)
downloadfocaccia-qemu-d0c8d2c05f67a1a007d87fa3b99254abfa42d06d.tar.gz
focaccia-qemu-d0c8d2c05f67a1a007d87fa3b99254abfa42d06d.zip
aio: extract aio_dispatch() from aio_poll()
We will need to loop over AioHandlers calling ->io_read()/->io_write()
when aio_poll() is converted from select(2) to g_poll(2).

Luckily the code for this already exists, extract it into the new
aio_dispatch() function.

Two small changes:

 * aio_poll() checks !node->deleted to avoid calling handlers that have
   been deleted.

 * Fix typo 'then' -> 'them' in aio_poll() comment.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-id: 1361356113-11049-9-git-send-email-stefanha@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qxl-render.c')
0 files changed, 0 insertions, 0 deletions