line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Queue::Q::ReliableFIFO; |
2
|
1
|
|
|
1
|
|
563
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
25
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
4
|
use Carp qw(croak); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
157
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# enqueue_item($item) |
8
|
|
|
|
|
|
|
# enqueue_item(@items) |
9
|
0
|
|
|
0
|
1
|
|
sub enqueue_item { croak("Unimplemented") } |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# my $item_or_undef = claim_item($n) # $n is number of items to claim |
12
|
0
|
|
|
0
|
1
|
|
sub claim_item { croak("Unimplemented") } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# mark_item_as_done($item_previously_claimed) |
15
|
|
|
|
|
|
|
# mark_item_as_done(@item_previously_claimed) |
16
|
0
|
|
|
0
|
1
|
|
sub mark_item_as_done { croak("Unimplemented") } |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub flush_queue { croak("Unimplemented") } |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# my $nitems = queue_length() |
21
|
|
|
|
|
|
|
# my $nitems = queue_length('busy') # claimed items |
22
|
|
|
|
|
|
|
# my $nitems = queue_length('failed') # failed items |
23
|
0
|
|
|
0
|
1
|
|
sub queue_length { croak("Unimplemented") } |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# consume(\&callback) |
26
|
0
|
|
|
0
|
0
|
|
sub consume { croak("Unimplemented") } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
__END__ |