From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <
1ff86f510806120642g5a707382l76aaaa80797443c8@mail.gmail.com>
This time, not empty.
p4raw-id: //depot/perl@34051
use strict;
use warnings;
-our $VERSION = '2.09';
+our $VERSION = '2.11';
use threads::shared 1.21;
use Scalar::Util 1.10 qw(looks_like_number blessed reftype refaddr);
=head1 VERSION
-This document describes Thread::Queue version 2.09
+This document describes Thread::Queue version 2.11
=head1 SYNOPSIS
L<http://www.cpanforum.com/dist/Thread-Queue>
Annotated POD for Thread::Queue:
-L<http://annocpan.org/~JDHEDDEN/Thread-Queue-2.09/lib/Thread/Queue.pm>
+L<http://annocpan.org/~JDHEDDEN/Thread-Queue-2.11/lib/Thread/Queue.pm>
Source repository:
L<http://code.google.com/p/thread-queue/>
}
use Config;
if (! $Config{'useithreads'}) {
- print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
+ print("1..0 # SKIP Perl not compiled with 'useithreads'\n");
exit(0);
}
}
is($q->dequeue(), 'done', 'Thread reported done');
is($q->pending(), 0, 'Empty queue');
+exit(0);
+
# EOF
}
use Config;
if (! $Config{'useithreads'}) {
- print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
+ print("1..0 # SKIP Perl not compiled with 'useithreads'\n");
exit(0);
}
}
is($$sref1, 'foo', 'Scalar ref unchanged');
is($$sref2, 'zzz', 'Shared scalar ref changed');
+exit(0);
+
# EOF
}
use Config;
if (! $Config{'useithreads'}) {
- print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
+ print("1..0 # SKIP Perl not compiled with 'useithreads'\n");
exit(0);
}
}
})->join();
q_check();
+exit(0);
+
# EOF
eval { $q->extract(0, 'foo'); };
like($@, qr/Invalid 'count'/, $@);
+exit(0);
+
# EOF
}
use Config;
if (! $Config{'useithreads'}) {
- print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
+ print("1..0 # SKIP Perl not compiled with 'useithreads'\n");
exit(0);
}
}
is_deeply(\@x, [4..6], 'Neg big overlap');
})->join();
+exit(0);
+
# EOF
}
use Config;
if (! $Config{'useithreads'}) {
- print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
+ print("1..0 # SKIP Perl not compiled with 'useithreads'\n");
exit(0);
}
}
@x = $q->dequeue_nb(100);
is_deeply(\@x, [1,'foo',2,3], 'Empty queue insert');
+exit(0);
+
# EOF
}
use Config;
if (! $Config{'useithreads'}) {
- print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
+ print("1..0 # SKIP Perl not compiled with 'useithreads'\n");
exit(0);
}
}
is_deeply(\@x, [1..5,8..10], 'Main dequeues');
threads::yield();
+exit(0);
+
# EOF
# Check results of thread's activities
is($q->pending(), 0, 'Empty queue');
+exit(0);
+
# EOF