Re: gdk/gtk+ win32 thread question, please help to explain
- From: KC <kcc1967 gmail com>
- To: Michael Cronenworth <mike cchtml com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gdk/gtk+ win32 thread question, please help to explain
- Date: Wed, 23 Nov 2011 14:28:16 +0800
On Wed, Nov 23, 2011 at 12:43 PM, Michael Cronenworth <mike cchtml com> wrote:
On 11/22/2011 10:13 PM, KC wrote:
So the "Unfortunately ..." statement only apply to GDK on WIN32 ?
It's safe to call GTK+ APIs (if protected by gdk_threads_enter/leave)
from multi-threads even on WIN32 backend ? Is this correct ?
No. GTK2 (I can't say about GTK3, but I bet it is the same) most definitely
does not work with threads even with gdk_threads_enter/leave under Win32.
You can use threads in your app, but all GTK2 operations must be strictly
done by the primary thread.
So, the gtk-thread.c example from
http://developer.gnome.org/gdk/stable/gdk-Threads.html
works on WIN32 is just good luck ?
In that case, it will be better if the document can add a NOTE for
gtk-thread.c example to remind reader it's not guarantee to work on WIN32.
Regards,
KC
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]