Revision history for Perl extension threads.
+1.44 Wed Oct 11 08:55:50 EDT 2006
+ - Complain about bad import options
+ - Added example threads script
+
1.43 Fri Oct 6 15:12:07 EDT 2006
- Stringify threads objects
- Removed 'typemap' file
# bugid #24165
-run_perl(prog => 'use threads 1.43;' .
+run_perl(prog => 'use threads 1.44;' .
'sub a{threads->create(shift)} $t = a sub{};' .
'$t->tid; $t->join; $t->tid',
nolib => ($ENV{PERL_CORE}) ? 0 : 1,
use strict;
use warnings;
-our $VERSION = '1.43';
+our $VERSION = '1.44';
my $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
} elsif ($sym =~ /^str/i) {
import overload ('""' => \&tid);
- } elsif ($sym =~ /all/) {
+ } elsif ($sym =~ /(?:all|yield)/) {
push(@EXPORT, qw(yield));
} else {
- push(@EXPORT, $sym);
+ require Carp;
+ Carp::croak("threads: Unknown import option: $sym");
}
}
=head1 VERSION
-This document describes threads version 1.43
+This document describes threads version 1.44
=head1 SYNOPSIS
L<http://www.cpanforum.com/dist/threads>
Annotated POD for L<threads>:
-L<http://annocpan.org/~JDHEDDEN/threads-1.43/threads.pm>
+L<http://annocpan.org/~JDHEDDEN/threads-1.44/threads.pm>
L<threads::shared>, L<perlthrtut>