Re: struggling with the non-recursive gdk_threads_enter

2009-01-04 Thread Yu Feng
On Sun, 2009-01-04 at 15:43 -0500, Matthias Clasen wrote: > On Sun, Jan 4, 2009 at 5:14 AM, Alexander Larsson wrote: > > > IMHO that is a Gtk+ bug. > > I agree. Yu, can you file a bug about this ? Yes. Filed as Bug 566578 Yu ___ gtk-devel-list maili

Re: struggling with the non-recursive gdk_threads_enter

2009-01-04 Thread Matthias Clasen
On Sun, Jan 4, 2009 at 5:14 AM, Alexander Larsson wrote: > IMHO that is a Gtk+ bug. I agree. Yu, can you file a bug about this ? ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: struggling with the non-recursive gdk_threads_enter

2009-01-04 Thread Alexander Larsson
On Tue, 2008-12-30 at 21:47 -0500, Yu Feng wrote: > Dear Devels: > > I am having troubles because the GMutex used gdk_threads_enter/leave can > be non-recursive. > > I have a piece of code (g_module_check_init) to either be called from an > event dispatched by GDK(if the module is loaded via GtkS

Re: struggling with the non-recursive gdk_threads_enter

2008-12-31 Thread Yu Feng
On Wed, 2008-12-31 at 15:11 +0200, Tor Lillqvist wrote: > > The code need to be protected so that its execution is not interrupted > > by GDK activities in other threads. How can I do this without a > > recursive gdk critical section? > > Don't use GTK+ from multiple threads. Makes the code a lot

Re: struggling with the non-recursive gdk_threads_enter

2008-12-31 Thread Tor Lillqvist
> The code need to be protected so that its execution is not interrupted > by GDK activities in other threads. How can I do this without a > recursive gdk critical section? Don't use GTK+ from multiple threads. Makes the code a lot cleaner. --tml ___ gt

struggling with the non-recursive gdk_threads_enter

2008-12-30 Thread Yu Feng
Dear Devels: I am having troubles because the GMutex used gdk_threads_enter/leave can be non-recursive. I have a piece of code (g_module_check_init) to either be called from an event dispatched by GDK(if the module is loaded via GtkSettings) or be called directly without entering the GDK critical