Re: gdk_threads_init? (was Re: IMPORTANT: a big problem with gnome 2)
- From: Owen Taylor <otaylor redhat com>
- To: gnome-2-0 <gnome-2-0-list gnome org>, gtk-devel-list gnome org
- Subject: Re: gdk_threads_init? (was Re: IMPORTANT: a big problem with gnome 2)
- Date: 22 Oct 2001 10:16:37 -0400
Owen Taylor <otaylor redhat com> writes:
> Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor redhat com>
>
> * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
> Add a function, gdk_threads_init() that must be explicitely
> called to enable the GDK thread mutex.
>
> >From docs/Changes-2.0.txt:
>
> * GDK is no longer put into threaded mode automatically when
> g_thread_init() has been called. In order to use the
> global GDK thread mutex with gdk_threads_enter() and
> gdk_threads_leave(), you must call gdk_threads_init() explicitely.
That's fine.
> gdk_threads_init() calls g_thread_init() if it hasn't already
> been called, so you can typically change your call to g_thread_init()
> into a call to gdk_threads_init().
This isn't :-); libgdk doesn't link to libgthread, so you'll have to
call g_thread _init() and gdk_threads_init().
Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor redhat com>
* gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
g_thread_init(), we don't want to link to -lgthread if we don't
have to.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]