line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package POE::XS::Queue::Array; |
2
|
5
|
|
|
5
|
|
137985
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
227
|
|
3
|
5
|
|
|
5
|
|
30
|
use vars qw(@ISA $VERSION); |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
343
|
|
4
|
5
|
|
|
5
|
|
141003
|
use POE::Queue; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
BEGIN { |
7
|
|
|
|
|
|
|
@ISA = qw(POE::Queue); |
8
|
|
|
|
|
|
|
$VERSION = '0.006'; |
9
|
|
|
|
|
|
|
eval { |
10
|
|
|
|
|
|
|
# try XSLoader first, DynaLoader has annoying baggage |
11
|
|
|
|
|
|
|
require XSLoader; |
12
|
|
|
|
|
|
|
XSLoader::load('POE::XS::Queue::Array' => $VERSION); |
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
} or do { |
15
|
|
|
|
|
|
|
require DynaLoader; |
16
|
|
|
|
|
|
|
push @ISA, 'DynaLoader'; |
17
|
|
|
|
|
|
|
bootstrap POE::XS::Queue::Array $VERSION; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
# lifted from POE::Queue::Array |
22
|
|
|
|
|
|
|
sub ITEM_PRIORITY () { 0 } |
23
|
|
|
|
|
|
|
sub ITEM_ID () { 1 } |
24
|
|
|
|
|
|
|
sub ITEM_PAYLOAD () { 2 } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub import { |
27
|
|
|
|
|
|
|
my $package = caller(); |
28
|
|
|
|
|
|
|
no strict 'refs'; |
29
|
|
|
|
|
|
|
*{ $package . '::ITEM_PRIORITY' } = \&ITEM_PRIORITY; |
30
|
|
|
|
|
|
|
*{ $package . '::ITEM_ID' } = \&ITEM_ID; |
31
|
|
|
|
|
|
|
*{ $package . '::ITEM_PAYLOAD' } = \&ITEM_PAYLOAD; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub CLONE_SKIP { 1 } |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# everything else is XS |
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |