diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-24 14:37:53 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-30 09:30:53 +0100 |
commit | 7c0628b20e7c56b7e04abb8b5f8d7da3f7cb87e8 (patch) | |
tree | 9d5ee71c6356c75ee356b81a764951c2ad919434 /main-loop.c | |
parent | 4231c88d27d9e46e6ad6e6b7bbb6e442bcf9cd05 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main-loop.c b/main-loop.c index 8f0117e7aa..1fdc3bdf2e 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, |