[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-perl
Subject: Re: [Kde-perl] OT: Problems when dealing with perl threads....
From: Ashley Winters <jahqueel () yahoo ! com>
Date: 2005-12-17 6:15:19
Message-ID: 20051217061519.86468.qmail () web50913 ! mail ! yahoo ! com
[Download RAW message or body]
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
_______________________________________________
Kde-perl mailing list
Kde-perl@kde.org
https://mail.kde.org/mailman/listinfo/kde-perl
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic