]> git.proxmox.com Git - mirror_qemu.git/commit - util/async.c
AioContext: introduce aio_prepare
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Jul 2014 09:53:08 +0000 (11:53 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 29 Aug 2014 09:46:58 +0000 (10:46 +0100)
commita3462c656128e7b900ccc5d436f9e858d07de264
treef0a5ba8f06d80bbf14fb27466af9d3126b45c4e9
parent0a9dd1664a0509f7c3c0c7a5550446258ee70f4b
AioContext: introduce aio_prepare

This will be used to implement socket polling on Windows.
On Windows, select() and g_poll() are completely different;
sockets are polled with select() before calling g_poll,
and the g_poll must be nonblocking if select() says a
socket is ready.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
aio-posix.c
aio-win32.c
async.c
include/block/aio.h