ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Linux-AIO/AIO.pm
(Generate patch)

Comparing Linux-AIO/AIO.pm (file contents):
Revision 1.17 by root, Sun Jul 18 10:55:34 2004 UTC vs.
Revision 1.23 by root, Wed Jun 29 15:22:36 2005 UTC

32package Linux::AIO; 32package Linux::AIO;
33 33
34use base 'Exporter'; 34use base 'Exporter';
35 35
36BEGIN { 36BEGIN {
37 $VERSION = 1.2; 37 $VERSION = 1.41;
38 38
39 @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink); 39 @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink);
40 @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel nreqs); 40 @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel nreqs);
41 41
42 require XSLoader; 42 require XSLoader;
70 70
71 Event->io (fd => Linux::AIO::poll_fileno, 71 Event->io (fd => Linux::AIO::poll_fileno,
72 poll => 'r', async => 1, 72 poll => 'r', async => 1,
73 cb => \&Linux::AIO::poll_cb ); 73 cb => \&Linux::AIO::poll_cb );
74 74
75
76=item Linux::AIO::nreqs 75=item Linux::AIO::nreqs
77 76
78Returns the number of requests currently outstanding. 77Returns the number of requests currently outstanding.
79 78
80=item aio_open $pathname, $flags, $mode, $callback 79=item aio_open $pathname, $flags, $mode, $callback
107error when stat'ing a large file, the results will be silently truncated 106error when stat'ing a large file, the results will be silently truncated
108unless perl itself is compiled with large file support. 107unless perl itself is compiled with large file support.
109 108
110=item aio_unlink $pathname, $callback 109=item aio_unlink $pathname, $callback
111 110
112Asynchronously unlink a file 111Asynchronously unlink a file.
113 112
114=cut 113=cut
115 114
116min_parallel 1; 115min_parallel 1;
117 116
134 133
135L<Coro>. 134L<Coro>.
136 135
137=head1 AUTHOR 136=head1 AUTHOR
138 137
139 Marc Lehmann <pcg@goof.com> 138 Marc Lehmann <schmorp@schmorp.de>
140 http://www.goof.com/pcg/marc/ 139 http://home.schmorp.de/
141 140
142=cut 141=cut
143 142

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines