aboutsummaryrefslogtreecommitdiffstats
path: root/src/io_thread.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-08-31 07:33:02 +0200
committerMax Kellermann <max@duempel.org>2011-08-31 07:33:07 +0200
commitf3ac8a7cd91f368cef7c6cf2387680e99212356d (patch)
tree0d86d8546ed8f142333233ded4d997177bf7e175 /src/io_thread.h
parentf3d95f70e230590d918098c396fb0901cee4b8c3 (diff)
downloadmpd-f3ac8a7cd91f368cef7c6cf2387680e99212356d.tar.gz
mpd-f3ac8a7cd91f368cef7c6cf2387680e99212356d.tar.xz
mpd-f3ac8a7cd91f368cef7c6cf2387680e99212356d.zip
io_thread: allow _call() from inside the thread
Diffstat (limited to 'src/io_thread.h')
-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);