summaryrefslogtreecommitdiffstats
path: root/main-loop.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-09-24 14:37:53 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-10-30 09:30:53 +0100
commit7c0628b20e7c56b7e04abb8b5f8d7da3f7cb87e8 (patch)
tree9d5ee71c6356c75ee356b81a764951c2ad919434 /main-loop.c
parent4231c88d27d9e46e6ad6e6b7bbb6e442bcf9cd05 (diff)
downloadhqemu-7c0628b20e7c56b7e04abb8b5f8d7da3f7cb87e8.zip
hqemu-7c0628b20e7c56b7e04abb8b5f8d7da3f7cb87e8.tar.gz
aio: add non-blocking variant of aio_wait
This will be used when polling the GSource attached to an AioContext. Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'main-loop.c')
-rw-r--r--main-loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main-loop.c b/main-loop.c
index 8f0117e..1fdc3bd 100644
--- a/main-loop.c
+++ b/main-loop.c
@@ -534,7 +534,7 @@ void qemu_aio_flush(void)
bool qemu_aio_wait(void)
{
- return aio_wait(qemu_aio_context);
+ return aio_poll(qemu_aio_context, true);
}
void qemu_aio_set_fd_handler(int fd,
OpenPOWER on IntegriCloud