mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
4231c88d27
commit
7c0628b20e
4 changed files with 32 additions and 13 deletions
2
async.c
2
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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue