aboutsummaryrefslogtreecommitdiffstats
path: root/src/io_thread.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/io_thread.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/io_thread.h b/src/io_thread.h
index db925ab8f..c91597225 100644
--- a/src/io_thread.h
+++ b/src/io_thread.h
@@ -52,6 +52,13 @@ G_GNUC_PURE
GMainContext *
io_thread_context(void);
+/**
+ * Is the current thread the I/O thread?
+ */
+G_GNUC_PURE
+bool
+io_thread_inside(void);
+
guint
io_thread_idle_add(GSourceFunc function, gpointer data);