gtk2 multithreaded programming win32 issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I had a multithreaded gtk2 network application (server/client type)
running well on Linux.
Recently, I port my app to Win32 and the GUI hangup ... however my
application did not crash, it still work if I connect to it via text
mode client.

I check Gtk2 reference manual again and got some possible reason.  Could
someone help to confirm if my understanding is correct or not:

1) Under Linux, Gtk2 use X11 backend.  We can have multiple GUI related threads
   control the GUI ... but require gdk_threads_enter()/leave() to make
sure only one
   thread can access the GUI at one time.   One of the GUI thread must
be main thread.

2) Under Win32, we can have one and only one GUI thread ... use
gdk_threads_enter()/leave()
   doesn't work on Win32.   And more, the GUI thread must be main thread.

Are these correct ?   Thanks a lot.

Regards
KC
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux