]> git.proxmox.com Git - qemu.git/commit - aio-win32.c
aio: prepare for introducing GSource-based dispatch
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Sep 2012 12:57:22 +0000 (14:57 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Oct 2012 08:30:53 +0000 (09:30 +0100)
commitcd9ba1ebcf0439457f22b75b38533f6634f23c5f
treee7af1d5a5aa7816810a3f44fde0e6d025c10f282
parent7c0628b20e7c56b7e04abb8b5f8d7da3f7cb87e8
aio: prepare for introducing GSource-based dispatch

This adds a GPollFD to each AioHandler.  It will then be possible to
attach these GPollFDs to a GSource, and from there to the main loop.
aio_wait examines the GPollFDs and avoids calling select() if any
is set (similar to what it does if bottom halves are available).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
aio.c
qemu-aio.h