Re: Non-Blocking GUI developement

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

 



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@xxxxxxxxx> 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@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
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