Re: Multi-threaded GTK+



Hans Breuer writes:
 > Balsa (mail client) : http://www.newton.cx/balsa/
 > Pavuk (web site cloning) : http://www.idata.sk/~ondrej/pavuk/about.html
 > gftp (ftp client) : http://gftp.seul.org/

Thanks. Will have a look at those, to see if they are usable as test
apps.

 > Maybe a simple:
 > 
 >   GDK_THREADS_ENTER ();
 >   real_window_procedure(...);
 >   GDK_THREADS_LEAVE ();
 > 
 > in _gdk_win32_window_procedure() would help a lot ?

I don't think so, as one basic issue is that Windows has a per-thread
message queue, while GDK-Win32 only does PeekMessage() and
MsgWaitForMultipleObjects() in one (the "main") thread. These calls
only notice messages destined for their own thread. Thus, if some
other thread creates a window, messages for it will never be read (and
converted into GDK events). I assume.

--tml




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