Re: Gtk widget running in separate thread

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

 



> Is it possible to run a GTK widget entirely in a separate thread i.e. all
> the input events on that widget are handled in that thread.

On X11, probably yes, with extreme care. Is it a good idea? NO!

(And in GTK+ on Windows, it is not really possible, not even using the
same extreme care as in GTK+ on X11. Note that this is not because the
Windows OS and Win32 API as such would be less thread-aware than Linux
or POSIX in general, but exactly because of the opposite: In Windows,
a window is associated with the thread that created it and messages
("events") for it go to the message queue for that thread, etc.
Compare to X11 which at its heart is a network protocol and has no
relation to threads (or processes, for that matter).)

--tml
_______________________________________________
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