ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/README
(Generate patch)

Comparing IO-AIO/README (file contents):
Revision 1.13 by root, Tue Aug 30 15:45:10 2005 UTC vs.
Revision 1.14 by root, Mon Dec 26 18:31:12 2005 UTC

12 aio_unlink "/tmp/file", sub { }; 12 aio_unlink "/tmp/file", sub { };
13 13
14 aio_read $fh, 30000, 1024, $buffer, 0, sub { 14 aio_read $fh, 30000, 1024, $buffer, 0, sub {
15 $_[0] > 0 or die "read error: $!"; 15 $_[0] > 0 or die "read error: $!";
16 }; 16 };
17
18 # AnyEvent
19 open my $fh, "<&=" . IO::AIO::poll_fileno or die "$!";
20 my $w = AnyEvent->io (fh => $fh, poll => 'r', cb => sub { IO::AIO::poll_cb });
17 21
18 # Event 22 # Event
19 Event->io (fd => IO::AIO::poll_fileno, 23 Event->io (fd => IO::AIO::poll_fileno,
20 poll => 'r', 24 poll => 'r',
21 cb => \&IO::AIO::poll_cb); 25 cb => \&IO::AIO::poll_cb);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines