, June 24, 2004 10:41 AM
To: perl Win32::GUI Users
Subject: [perl-win32-gui-users] Working with threads
This model works quite well: -
use win32::GUI;
use threads;
use Thread::Queue;
# contruct GUI here --
my $commandQueue = Thread::Queue-new;
threads-new(sub {
while
Hi,
[snipped code]
This works, but the problem is when I exit the program, I get this
warning printed to STDOUT:
d:\gui100.pl
A thread exited while 2 threads were running.
Anyone know how stop this? Also, now that I have 5.8, I hope to be able
to use threads more often. Can anyone
exercise rather futile!
Hope that is of some help...
Cheers,
jez.
- Original Message -
From: Brad Smith [EMAIL PROTECTED]
To: perl-win32-gui-users@lists.sourceforge.net
Sent: Wednesday, June 23, 2004 11:49 AM
Subject: [perl-win32-gui-users] Working with threads
Yesterday, after
This model works quite well: -
use win32::GUI;
use threads;
use Thread::Queue;
# contruct GUI here --
my $commandQueue = Thread::Queue-new;
threads-new(sub {
while (my $command = $commandQueue-dequeue) {
eval $command; warn $@ if $@;
}
});
Yesterday, after finishing a gui, I started reading some old list postings
on threads. I looked over my application and found a part of the code
where I could test the threading (perl 5.8.x). Best part, it worked!
I have been programming in Perl steadily for the past five years, and it
has
5 matches
Mail list logo