aboutsummaryrefslogtreecommitdiff
path: root/async.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 /async.c
parent4231c88d27d9e46e6ad6e6b7bbb6e442bcf9cd05 (diff)
downloadqemu-7c0628b20e7c56b7e04abb8b5f8d7da3f7cb87e8.zip
qemu-7c0628b20e7c56b7e04abb8b5f8d7da3f7cb87e8.tar.gz
qemu-7c0628b20e7c56b7e04abb8b5f8d7da3f7cb87e8.tar.bz2
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 'async.c')
-rw-r--r--async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/async.c b/async.c
index c99db79..513bdd7 100644
--- a/async.c
+++ b/async.c
@@ -144,5 +144,5 @@ AioContext *aio_context_new(void)
void aio_flush(AioContext *ctx)
{
- while (aio_wait(ctx));
+ while (aio_poll(ctx, true));
}