summaryrefslogtreecommitdiff
path: root/qemu-aio.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-aio.h')
-rw-r--r--qemu-aio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu-aio.h b/qemu-aio.h
index f19201e7ca..ac248962fe 100644
--- a/qemu-aio.h
+++ b/qemu-aio.h
@@ -133,6 +133,13 @@ void qemu_bh_delete(QEMUBH *bh);
* outstanding AIO operations have been completed or cancelled. */
void aio_flush(AioContext *ctx);
+/* Return whether there are any pending callbacks from the GSource
+ * attached to the AioContext.
+ *
+ * This is used internally in the implementation of the GSource.
+ */
+bool aio_pending(AioContext *ctx);
+
/* Progress in completing AIO work to occur. This can issue new pending
* aio as a result of executing I/O completion or bh callbacks.
*