]> git.proxmox.com Git - mirror_qemu.git/commit - util/main-loop.c
iohandler: Use aio API
authorFam Zheng <famz@redhat.com>
Mon, 7 Sep 2015 03:28:58 +0000 (11:28 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 7 Sep 2015 16:14:03 +0000 (18:14 +0200)
commitf3926945c85689e8af324c0db0b39be771dbbebb
tree886a0e84aa50d6e34191f4366c2a589b0680f4fa
parent46036b2462c7ff56c0af6466ea6b9248197a38a8
iohandler: Use aio API

iohandler.c shares the same interface with aio, but with duplicated
code. It's better to rebase iohandler, also because that aio is a
more friendly interface to multi-threads.

Create a global AioContext instance and let its GSource handle the
iohandler events.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1441596538-4412-1-git-send-email-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/main-loop.h
iohandler.c
main-loop.c