Re: Non-Blocking GUI developement



An approach I frequently use in Python is to create a Thread object
that is also a derived GObject.

I code the thread to send a thread-finished gobject signal when it
completes. This works quite well because (if i recall correctly) glib
signal emission is thread-safe since 2.10? - even if gtk is not.

I then have a small manager class that runs in the mainloop whose job
it is to start my threads and clean them up when the thread-finished
signal arrives

John

On 1/25/07, Bohtvaroh <bohtvaroh gmail com> wrote:

Please, read this first: http://www.gtk.org/faq/#AEN482
--
View this message in context: http://www.nabble.com/Non-Blocking-GUI-developement-tf3081437.html#a8573234
Sent from the Gtk+ - General mailing list archive at Nabble.com.

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




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