Re: thread support in Windows: problem

2008-01-25 Thread [EMAIL PROTECTED]
On 23:55 Thu 24 Jan , Tor Lillqvist wrote: > > Write wrapper functions for any gtk operation you'd like to execute from > > threads in a way that the thread calls a glib's idle function which does > > the real gtk work. > > An interesting approach. Did you use some automated technique to > gen

Re: thread support in Windows: problem

2008-01-24 Thread Tor Lillqvist
> Write wrapper functions for any gtk operation you'd like to execute from > threads in a way that the thread calls a glib's idle function which does > the real gtk work. An interesting approach. Did you use some automated technique to generate these wrappers, or just manual work? How well does i

Re: thread support in Windows: problem

2008-01-24 Thread Chris Vine
On Thu, 2008-01-24 at 21:26 +0100, [EMAIL PROTECTED] wrote: > I've tried to make gtk work with threads on win32 and linux for a long > time now and I am finally proud to say, it is possible -- but, as Tor > said, not trivial. [snip] > Write wrapper functions for any gtk operation you'd like to ex

Re: thread support in Windows: problem

2008-01-24 Thread Brian J. Tarricone
[EMAIL PROTECTED] wrote: > Write wrapper functions for any gtk operation you'd like to execute from > threads in a way that the thread calls a glib's idle function which does > the real gtk work. Additionally (!) you need to lock gtk/gdk access by > the gds_threads_enter/leave functions -- since

Re: thread support in Windows: problem

2008-01-24 Thread [EMAIL PROTECTED]
On 11:37 Thu 24 Jan , Tor Lillqvist wrote: > > I am trying to run a simple(st) thread example in GTK with a > > windows-MinGW-Msys development environment > > Don't bother. You should not call GTK+ functions from multiple threads > on Windows. It won't work. There are deep technical reasons fo

Re: thread support in Windows: problem

2008-01-24 Thread Tor Lillqvist
> I am trying to run a simple(st) thread example in GTK with a > windows-MinGW-Msys development environment Don't bother. You should not call GTK+ functions from multiple threads on Windows. It won't work. There are deep technical reasons for this, fixing it is in no way trivial. This has been men

thread support in Windows: problem

2008-01-23 Thread vijayasarathy
Hi all, I am trying to run a simple(st) thread example in GTK with a windows-MinGW-Msys development environment(please refer to http://library.gnome.org/devel/gdk/unstable/gdk-Threads.html Eric's code for the code I ran), and Mingw unfortunately doesnt provide thread headers and libraries[pthrea