mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
0a9dd1664a
commit
a3462c6561
4 changed files with 23 additions and 1 deletions
|
@ -205,7 +205,14 @@ void qemu_bh_cancel(QEMUBH *bh);
|
|||
void qemu_bh_delete(QEMUBH *bh);
|
||||
|
||||
/* Return whether there are any pending callbacks from the GSource
|
||||
* attached to the AioContext.
|
||||
* attached to the AioContext, before g_poll is invoked.
|
||||
*
|
||||
* This is used internally in the implementation of the GSource.
|
||||
*/
|
||||
bool aio_prepare(AioContext *ctx);
|
||||
|
||||
/* Return whether there are any pending callbacks from the GSource
|
||||
* attached to the AioContext, after g_poll is invoked.
|
||||
*
|
||||
* This is used internally in the implementation of the GSource.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue