=head1 NAME Linux::AIO - linux-specific aio implemented using clone =head1 SYNOPSIS use Linux::AIO; =head1 DESCRIPTION =over 4 =cut package Linux::AIO; BEGIN { $VERSION = 0.001; require XSLoader; XSLoader::load Linux::AIO, $VERSION; } use base 'Exporter'; =item Linux::AIO::min_parallel($nthreads) Set the minimum number of AIO threads to $nthreads. =cut =item Linux::AIO::read($fh,$offset,$length, $data,$dataoffset,$callback) Linux::AIO::write($fh,$offset,$length, $data,$dataoffset,$callback) Reads or writes C bytes from the specified C and C into the scalar given by C and offset C and calls the callback without the actual number of bytes read (or undef on error). =cut 1; =back =head1 BUGS This module has not yet been extensively tested. Watch out! This module does not use the aio_* posix functions because a) linux does not have aio, b) the existing aio_* functions use pthreads, which are too buggy for my usage. =head1 SEE ALSO L. =head1 AUTHOR Marc Lehmann http://www.goof.com/pcg/marc/ =cut