Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 89e2fe5

Browse files
jdheddenjkeenan
authored andcommittedMay 21, 2016
Upgrade to Thread::Queue 3.11
For: RT #128195
1 parent 47011d9 commit 89e2fe5

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed
 

‎Porting/Maintainers.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ package Maintainers;
11531153
# correct for this (and Thread::Semaphore, threads, and threads::shared)
11541154
# to be under dist/ rather than cpan/
11551155
'Thread::Queue' => {
1156-
'DISTRIBUTION' => 'JDHEDDEN/Thread-Queue-3.09.tar.gz',
1156+
'DISTRIBUTION' => 'JDHEDDEN/Thread-Queue-3.11.tar.gz',
11571157
'FILES' => q[dist/Thread-Queue],
11581158
'EXCLUDED' => [
11591159
qr{^examples/},

‎dist/Thread-Queue/lib/Thread/Queue.pm

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Thread::Queue;
33
use strict;
44
use warnings;
55

6-
our $VERSION = '3.09';
6+
our $VERSION = '3.11';
77
$VERSION = eval $VERSION;
88

99
use threads::shared 1.21;
@@ -304,7 +304,7 @@ Thread::Queue - Thread-safe queues
304304
305305
=head1 VERSION
306306
307-
This document describes Thread::Queue version 3.09
307+
This document describes Thread::Queue version 3.11
308308
309309
=head1 SYNOPSIS
310310
@@ -618,8 +618,11 @@ Passing array/hash refs that contain objects may not work for Perl prior to
618618
619619
=head1 SEE ALSO
620620
621-
Thread::Queue Discussion Forum on CPAN:
622-
L<http://www.cpanforum.com/dist/Thread-Queue>
621+
Thread::Queue on MetaCPAN:
622+
L<https://metacpan.org/release/Thread-Queue>
623+
624+
Code repository for CPAN distribution:
625+
L<https://github.com/Dual-Life/Thread-Queue>
623626
624627
L<threads>, L<threads::shared>
625628

‎dist/Thread-Queue/t/07_lock.t

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ok($q, 'New queue');
2929
my $sm = Thread::Semaphore->new(0);
3030
my $st = Thread::Semaphore->new(0);
3131

32-
threads->create(sub {
32+
my $thr = threads->create(sub {
3333
{
3434
lock($q);
3535
$sm->up();
@@ -39,13 +39,14 @@ threads->create(sub {
3939
my @x = $q->extract(5,2);
4040
is_deeply(\@x, [6,7], 'Thread dequeues under lock');
4141
}
42-
})->detach();
42+
});
4343

4444
$sm->down();
4545
$st->up();
4646
my @x = $q->dequeue_nb(100);
4747
is_deeply(\@x, [1..5,8..10], 'Main dequeues');
48-
threads::yield();
48+
49+
$thr->join();
4950

5051
exit(0);
5152

0 commit comments

Comments
 (0)
Please sign in to comment.