]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/block/aio.h
AioContext: introduce aio_prepare
[mirror_qemu.git] / include / block / aio.h
index 7ba3e9675b8f1c5dc62fcc7dcd29c4b75c20ad5c..ef4197b8619162c6983b39da2a4705e91c07c1dd 100644 (file)
@@ -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.
  */