]> Git Repo - qemu.git/commit - aio-posix.c
aio: convert aio_poll() to g_poll(3)
authorStefan Hajnoczi <[email protected]>
Wed, 20 Feb 2013 10:28:32 +0000 (11:28 +0100)
committerAnthony Liguori <[email protected]>
Thu, 21 Feb 2013 22:17:31 +0000 (16:17 -0600)
commit6b5f876252b7aeec43e319afdf17705f512be2bc
tree7204ef07bd2173232968669bec677596569d9ef6
parentd0c8d2c05f67a1a007d87fa3b99254abfa42d06d
aio: convert aio_poll() to g_poll(3)

AioHandler already has a GPollFD so we can directly use its
events/revents.

Add the int pollfds_idx field to AioContext so we can map g_poll(3)
results back to AioHandlers.

Reuse aio_dispatch() to invoke handlers after g_poll(3).

Signed-off-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Message-id: 1361356113[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
aio-posix.c
async.c
include/block/aio.h
This page took 0.026189 seconds and 4 git commands to generate.