diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-06-09 04:01:51 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-30 09:30:53 +0100 |
commit | f42b22077bc63a482d7a8755b54e33475ab78541 (patch) | |
tree | 33f248df458d15ca3a816be0f2ef24ffa8af17a7 /main-loop.c | |
parent | cd9ba1ebcf0439457f22b75b38533f6634f23c5f (diff) | |
download | qemu-f42b22077bc63a482d7a8755b54e33475ab78541.tar.gz qemu-f42b22077bc63a482d7a8755b54e33475ab78541.tar.bz2 qemu-f42b22077bc63a482d7a8755b54e33475ab78541.zip |
aio: add Win32 implementation
The Win32 implementation will only accept EventNotifiers, thus a few
drivers are disabled under Windows. EventNotifiers are a good match
for the GSource implementation, too, because the Win32 port of glib
allows to place their HANDLEs in a GPollFD.
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 1fdc3bdf2e..a86c275149 100644 --- a/main-loop.c +++ b/main-loop.c @@ -537,6 +537,7 @@ bool qemu_aio_wait(void) return aio_poll(qemu_aio_context, true); } +#ifdef CONFIG_POSIX void qemu_aio_set_fd_handler(int fd, IOHandler *io_read, IOHandler *io_write, @@ -549,7 +550,6 @@ void qemu_aio_set_fd_handler(int fd, qemu_set_fd_handler2(fd, NULL, io_read, io_write, opaque); } -#ifdef CONFIG_POSIX void qemu_aio_set_event_notifier(EventNotifier *notifier, EventNotifierHandler *io_read, AioFlushEventNotifierHandler *io_flush) |