diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-09 11:53:08 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-29 10:46:58 +0100 |
commit | a3462c656128e7b900ccc5d436f9e858d07de264 (patch) | |
tree | f0a5ba8f06d80bbf14fb27466af9d3126b45c4e9 /aio-posix.c | |
parent | 0a9dd1664a0509f7c3c0c7a5550446258ee70f4b (diff) | |
download | qemu-a3462c656128e7b900ccc5d436f9e858d07de264.tar.gz qemu-a3462c656128e7b900ccc5d436f9e858d07de264.tar.bz2 qemu-a3462c656128e7b900ccc5d436f9e858d07de264.zip |
AioContext: introduce aio_prepare
This will be used to implement socket polling on Windows.
On Windows, select() and g_poll() are completely different;
sockets are polled with select() before calling g_poll,
and the g_poll must be nonblocking if select() says a
socket is ready.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'aio-posix.c')
-rw-r--r-- | aio-posix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/aio-posix.c b/aio-posix.c index 0936b4ff9d..d3ac06e238 100644 --- a/aio-posix.c +++ b/aio-posix.c @@ -100,6 +100,11 @@ void aio_set_event_notifier(AioContext *ctx, (IOHandler *)io_read, NULL, notifier); } +bool aio_prepare(AioContext *ctx) +{ + return false; +} + bool aio_pending(AioContext *ctx) { AioHandler *node; |