Re: gdk/gtk+ win32 thread question, please help to explain
- From: KC <kcc1967 gmail com>
- To: Emmanuel Thomas-Maurin <manutm007 gmail com>
- Cc: GTK mailing list <gtk-app-devel-list gnome org>
- Subject: Re: gdk/gtk+ win32 thread question, please help to explain
- Date: Wed, 23 Nov 2011 16:39:01 +0800
On Wed, Nov 23, 2011 at 4:16 PM, Emmanuel Thomas-Maurin
<manutm007 gmail com> wrote:
On 11/23/2011 07:28 AM, KC wrote:
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.
It's actually well documented
I knew it's well documented. I just want to point out that the
example, gtk-thread.c, provided in
http://developer.gnome.org/gdk/stable/gdk-Threads.html
although works fine on WIN32, but it's not correct. And that
should be mentioned to avoid confusion.
on: http://www.gtk.org/documentation.php
-> Windows portability for gnome software
(http://www.iki.fi/tml/fosdem-2006.pdf)
I don't know this useful presentation before, Thanks.
KC
--
Emmanuel Thomas-Maurin <manutm007 gmail com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]