[Kde-perl] OT: Problems when dealing with perl threads....
Ashley Winters
jahqueel at yahoo.com
Sat Dec 17 07:15:19 CET 2005
Oh, and another oddball idea for you:
Run Qt in its own detached thread. I haven't tried it, but it might
work.
package main;
our $progress : shared;
threads->new(\&pacify_user);
rpmDbInit();
installBase('noscripts');
sub pacify_user {
my $a = Qt::Application(\@ARGV);
my $w = installProgressDlg;
...
}
Setup a 50ms timer in the GUI thread to check on the $progress variable
and update the user as to what's going on, or otherwise synchronize.
As long as you don't spawn a new thread from the GUI thread, you might
get away with it. :)
Even better, if there's still a segfault, I might be able to offer a
fix for it.
Ashley Winters
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Kde-perl
mailing list