File tree 9 files changed +17
-3
lines changed
9 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -1130,7 +1130,7 @@ package Maintainers;
1130
1130
# correct for this (and Thread::Semaphore, threads, and threads::shared)
1131
1131
# to be under dist/ rather than cpan/
1132
1132
' Thread::Queue' => {
1133
- ' DISTRIBUTION' => ' JDHEDDEN/Thread-Queue-3.12 .tar.gz' ,
1133
+ ' DISTRIBUTION' => ' JDHEDDEN/Thread-Queue-3.13 .tar.gz' ,
1134
1134
' FILES' => q[ dist/Thread-Queue] ,
1135
1135
' EXCLUDED' => [
1136
1136
qr { ^examples/} ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package Thread::Queue;
3
3
use strict;
4
4
use warnings;
5
5
6
- our $VERSION = ' 3.12 ' ;
6
+ our $VERSION = ' 3.13 ' ;
7
7
$VERSION = eval $VERSION ;
8
8
9
9
use threads::shared 1.21;
@@ -318,7 +318,7 @@ Thread::Queue - Thread-safe queues
318
318
319
319
=head1 VERSION
320
320
321
- This document describes Thread::Queue version 3.12
321
+ This document describes Thread::Queue version 3.13
322
322
323
323
=head1 SYNOPSIS
324
324
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ BEGIN {
12
12
use threads;
13
13
use Thread::Queue;
14
14
15
+ BEGIN { # perl RT 133382
15
16
if ($] == 5.008) {
16
17
require ' t/test.pl' ; # Test::More work-alike for Perl 5.8.0
17
18
} else {
18
19
require Test::More;
19
20
}
20
21
Test::More-> import ();
22
+ } # end BEGIN
21
23
plan(' tests' => 81);
22
24
23
25
# ## Basic usage with multiple threads ###
Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ use threads;
13
13
use threads::shared;
14
14
use Thread::Queue;
15
15
16
+ BEGIN { # perl RT 133382
16
17
if ($] == 5.008) {
17
18
require ' t/test.pl' ; # Test::More work-alike for Perl 5.8.0
18
19
} else {
19
20
require Test::More;
20
21
}
21
22
Test::More-> import ();
23
+ } # end BEGIN
22
24
plan(' tests' => 46);
23
25
24
26
# Regular array
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ BEGIN {
12
12
use threads;
13
13
use Thread::Queue;
14
14
15
+ BEGIN { # perl RT 133382
15
16
if ($] == 5.008) {
16
17
require ' t/test.pl' ; # Test::More work-alike for Perl 5.8.0
17
18
} else {
18
19
require Test::More;
19
20
}
20
21
Test::More-> import ();
22
+ } # end BEGIN
21
23
plan(' tests' => 19);
22
24
23
25
my $q = Thread::Queue-> new(1..10);
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ BEGIN {
12
12
use threads;
13
13
use Thread::Queue;
14
14
15
+ BEGIN { # perl RT 133382
15
16
if ($] == 5.008) {
16
17
require ' t/test.pl' ; # Test::More work-alike for Perl 5.8.0
17
18
} else {
18
19
require Test::More;
19
20
}
20
21
Test::More-> import ();
22
+ } # end BEGIN
21
23
plan(' tests' => 20);
22
24
23
25
my $q = Thread::Queue-> new(1..10);
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ BEGIN {
12
12
use threads;
13
13
use Thread::Queue;
14
14
15
+ BEGIN { # perl RT 133382
15
16
if ($] == 5.008) {
16
17
require ' t/test.pl' ; # Test::More work-alike for Perl 5.8.0
17
18
} else {
18
19
require Test::More;
19
20
}
20
21
Test::More-> import ();
22
+ } # end BEGIN
21
23
plan(' tests' => 16);
22
24
23
25
my $q = Thread::Queue-> new(1..10);
Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ use threads;
13
13
use Thread::Queue;
14
14
use Thread::Semaphore;
15
15
16
+ BEGIN { # perl RT 133382
16
17
if ($] == 5.008) {
17
18
require ' t/test.pl' ; # Test::More work-alike for Perl 5.8.0
18
19
} else {
19
20
require Test::More;
20
21
}
21
22
Test::More-> import ();
23
+ } # end BEGIN
22
24
plan(' tests' => 3);
23
25
24
26
# The following tests locking a queue
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ BEGIN {
12
12
use threads;
13
13
use Thread::Queue;
14
14
15
+ BEGIN { # perl RT 133382
15
16
if ($] == 5.008) {
16
17
require ' t/test.pl' ; # Test::More work-alike for Perl 5.8.0
17
18
} else {
18
19
require Test::More;
19
20
}
20
21
Test::More-> import ();
22
+ } # end BEGIN
21
23
plan(' tests' => 19);
22
24
23
25
# ## ->dequeue_timed(TIMEOUT, COUNT) test ###
You can’t perform that action at this time.
0 commit comments