thread problem
Tor Lillqvist <[email protected]>
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
drhammerit writes: > my program use two thread, one stay in gtk_main() and the other > receive data from the net and draw somo control on the main window. Won't work. GTK+ on Windows does not work in general when used from multiple threads. This is something that needs to be fixed. The fix, AFAIK, would be to use a single thread (internally in GDK) for all GDI interaction. I.e. it will require quite a lot of internal restructuring and recoding. If you can restructure your program yourself so that all GTK+ calls that will invoke GDI are done from a single "GUI" thread, it should work fine. (Note that any thread can invoke "callbacks" in the GUI thread using gtk_idle_add.) --tml