summaryrefslogtreecommitdiff
path: root/gdk/gdkglobals.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@gtk.org>1998-05-16 02:13:12 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-05-16 02:13:12 +0000
commit457148333e72c2bc607268ce4922c531aaf33181 (patch)
tree869e8cb6ad75e382de86fbce844141266171fca2 /gdk/gdkglobals.c
parent123e299bcf4a86e8078d77d4f3d4367638cded94 (diff)
downloadgtk+-457148333e72c2bc607268ce4922c531aaf33181.tar.gz
Basic thread-awareness:
Fri May 15 21:16:54 1998 Owen Taylor <otaylor@gtk.org> Basic thread-awareness: * acconfig.h configure.in: New option --with-threads=[yes/posix/no] * gdk/Makefile.am gdk/gdkthreads.c: Added new functions gdk_threads_[init/enter/leave] for applications, plus gdk_threads_wake to wake the mainloop thread out of the select(). * gtk/Makefile.am: gtk/testthreads.c: Test program for threads Fri May 15 12:08:48 1998 Owen Taylor <otaylor@gtk.org> * gtk/testgtk.c (list_clear): Account for the fact that gtk_list_clear_items is not inclusive. (Clears [start, end))
Diffstat (limited to 'gdk/gdkglobals.c')
-rw-r--r--gdk/gdkglobals.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdk/gdkglobals.c b/gdk/gdkglobals.c
index 6e34bfa883..82b67a823f 100644
--- a/gdk/gdkglobals.c
+++ b/gdk/gdkglobals.c
@@ -20,6 +20,7 @@
#include <X11/Xlib.h>
#include "gdktypes.h"
#include "gdkprivate.h"
+#include "../config.h"
guint gdk_debug_flags = 0;
gint gdk_use_xshm = TRUE;
@@ -53,3 +54,13 @@ gint gdk_error_code;
gint gdk_error_warnings = TRUE;
gint gdk_null_window_warnings = TRUE;
GList *gdk_default_filters = NULL;
+
+gboolean gdk_using_threads = FALSE;
+
+/* Used to signal the mainloop thread from its select() */
+#ifdef USE_PTHREADS
+gint gdk_threads_pipe[2];
+gboolean gdk_select_waiting = FALSE;
+#endif
+
+