in reply to Perl threads test on Windows: how to close thread handles?

derived from http://www.perldoc.com/perl5.8.4/pod/perlthrtut.html#What-Threads-Are-Running- :
# Loop through all the threads foreach $thr (threads->list) { $thr->yield; }

Replies are listed 'Best First'.
Re^2: Perl threads test on Windows: how to close thread handles?
by eyepopslikeamosquito (Archbishop) on Jun 04, 2004 at 03:29 UTC
    # Loop through all the threads foreach $thr (threads->list) { $thr->yield; }

    I don't get it. How will calling yield at any point in my test program cause the underlying Win32 thread handle to be closed?

    To clarify, I think my test program above demonstrates a perl bug, but, being very new to threads, I need confirmation that I'm not being silly before perl-bugging it.