ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/AnyEvent-XSThreadPool/XSThreadPool.pm
Revision: 1.1
Committed: Thu Jun 25 21:08:51 2015 UTC (11 years, 3 months ago) by root
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# Content
1 =head1 NAME
2
3 AnyEvent::XSThreadPool - manage xs-level thread pools to do stuff asynchronously
4
5 =head1 SYNOPSIS
6
7 use AnyEvent::XSThreadPool;
8
9 =head1 DESCRIPTION
10
11 =over 4
12
13 =cut
14
15 package AnyEvent::XSThreadPool;
16
17 BEGIN {
18 our $VERSION = 0.02;
19
20 use XSLoader;
21 XSLoader::load __PACKAGE__, $VERSION;
22 }
23
24 use AnyEvent;
25
26 =item $pool = new AnyEvent::XSThreadPool
27
28 =cut
29
30 sub new {
31 my ($class) = @_;
32
33 my $self = bless [""], $class;
34
35 my $poll_cb = _init $self->[0];
36 $self->[1] = AE::io $self->fileno, 0, $poll_cb;
37
38 $self
39 }
40
41 sub DESTROY {
42 &_destroy;
43 }
44
45 =back
46
47 =head1 AUTHOR
48
49 Marc Lehmann <schmorp@schmorp.de>
50 http://software.schmorp.de/pkg/AnyEvent-XSThreadPool.html
51
52 =cut
53
54 1
55