From f3ac8a7cd91f368cef7c6cf2387680e99212356d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 31 Aug 2011 07:33:02 +0200 Subject: io_thread: allow _call() from inside the thread --- src/io_thread.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/io_thread.h') 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); -- cgit v1.2.3