Re: Updating GUI from a callback using threads
- From: muppet <scott asofyet org>
- To: "gtk-perl-list gnome org List" <gtk-perl-list gnome org>
- Subject: Re: Updating GUI from a callback using threads
- Date: Tue, 5 Aug 2008 21:37:32 -0400
On Aug 5, 2008, at 9:16 AM, zentara wrote:
So here are some rules to follow that will let things work right.
These can be violated,
but you may cause errors, These rules, if followed, will give
foolproof thread operation.
The other big alternative, of course, is "don't use threads, fork a
child process and communicate status and results via a pipe that you
monitor from the main loop." This is a recurring theme here on the
mailing list.
Can i use threads with Gtk2-Perl.
http://live.gnome.org/GTK2-Perl/FrequentlyAskedQuestions#head-4d5ea9310685f66fc167cf8497357e341f73128b
How do i keep my GUI updating while doing a long file read?
http://live.gnome.org/GTK2-Perl/FrequentlyAskedQuestions#head-20b1c1d3a92f0c61515cb88d15e06b686eba6cbc
Whether a child process or a thread is more appropriate depends on
your problem.
--
Me: What's that in your mouth?
Zella: *swallows laboriously* Nothing.
Me: What did you just swallow?
Zella: A booger.
Me: Baby girl, don't eat boogers. That's gross.
Zella: But it was in my nose.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]