Re: gtk 2 or 3



If I may ask, what is the main technical problem (deeper explanation) with using GTK+ from multiple threads?

On Windows, the problem is that Windows GDI, being a local windowing
system with a quite tight coupling to the client code executing on the
same machine, is very much thread-aware. (With tight coupling I mean
that you do actual system calls into the in-kernel windowing system,
and it does actual callbacks into your code.) Windows and other
objects that are created by one thread keep that thread association
and their messages (events) are delivered to the same thread. Stuff
like that.

Totally different from X, which is basically a network protocol, and
the protocol carries no information of what threads there might be in
a client, or even which client connections perhaps are from the same
process. (At least in traditional X; modern Linux local-only X usage
with various extension and security enhancements etc might change the
picture a bit.)

--tml



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