in reply to Re: cleanly exiting threads
in thread cleanly exiting threads
in perl 5.8.8 is there any equivalent of thread->exit()? Can I explicitly kill threads in anyway?
interestingly enough if i do a threads->list() right before the main script exits, I don't get any response.
In this run, I only have two threads, (i.e. one test running), plus thread 0 and it is still reporting exiting with two running.
The code:The output:my @list = threads->list(); print Dumper(\@list); print "\ntotal time: ", format_time( tv_interval($t0) ), "\n"; __END__
$VAR1 = []; total time: 0:1:1.26 A thread exited while 2 threads were running.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: cleanly exiting threads
by zentara (Cardinal) on Aug 13, 2008 at 20:17 UTC |