diff options
author | Michael Meeks <michael@ximian.com> | 2003-12-08 17:13:13 +0000 |
---|---|---|
committer | Michael Meeks <michael@src.gnome.org> | 2003-12-08 17:13:13 +0000 |
commit | fa3ca01b174f561727c2f3c7e90195d009de983d (patch) | |
tree | 9b0528761f7936d883f539240e02ea7122b56a65 /gdk/gdkglobals.c | |
parent | 47f63b8cb2ddd82a78137063c1dd5c99ee63eb03 (diff) | |
download | gtk+-fa3ca01b174f561727c2f3c7e90195d009de983d.tar.gz |
Based on a patch by Martin Kretzschmar; #122448
2003-12-02 Michael Meeks <michael@ximian.com>
Based on a patch by Martin Kretzschmar; #122448
* gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
(GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
function pointers. Deprecate the global gdk_threads_mutex variable.
* gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
extracted from GTK_THREADS_ENTER/LEAVE macros.
(gdk_threads_init): init gtk_threads_[un]lock if not set.
(gdk_threads_set_lock_functions): impl.
* gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
Diffstat (limited to 'gdk/gdkglobals.c')
-rw-r--r-- | gdk/gdkglobals.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdk/gdkglobals.c b/gdk/gdkglobals.c index a4ec657457..d3d332f5dc 100644 --- a/gdk/gdkglobals.c +++ b/gdk/gdkglobals.c @@ -40,5 +40,6 @@ gchar *_gdk_display_arg_name = NULL; GSList *_gdk_displays = NULL; -GMutex *gdk_threads_mutex = NULL; /* Global GDK lock */ - +GMutex *gdk_threads_mutex = NULL; /* Global GDK lock */ +GCallback gdk_threads_lock = NULL; +GCallback gdk_threads_unlock = NULL; |