stopping a thread and test error with Thread-Signal-1.09

[email protected] (Tom Brettin)
Newsgroups perl.ithreads
Message-ID <[email protected]>
This message is two-part. The first is 

I am in need of a something like:

$worker_thread->stop();

I thought I would take a look at Thread::Suspend. I'm not sure that 
suspend is really what I need. Is there a simple way to stop a thread?

part-two:

When I run the tests on Thread::Suspend, the tests don't pass. In fact, the 
test t/Signal02 hangs. See below:



# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Signal01....
=========================================================================
Please note that some warnings are displayed during testing.  This should
not happen, but unfortunately does.  This seems to be caused by a weird
interaction between threads, Thread::Signal and Test::More.  Should you
use Thread::Signal in a "normal" situation with warnings enabled, and you
are getting warnings, please report these.  Thank you for your attention.
=========================================================================

t/Signal01....dubious
        Test returned status 0 (wstat 139, 0x8b)
        test program seems to have generated a core
DIED. FAILED tests 4-11
        Failed 8/11 tests, 27.27% okay
t/Signal02....Use of uninitialized value in hash element at (eval 18) 
line 41.
t/Signal02....ok 3/5




Thomas S. Brettin
505-665-3334 (office)
505-699-7540 (cell)
505-665-3024 (fax)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.