--- Linux-AIO/AIO.pm 2004/05/06 15:05:57 1.16 +++ Linux-AIO/AIO.pm 2004/07/18 10:55:34 1.17 @@ -18,6 +18,10 @@ thread support in your libc or perl, and the threads created by this module will not be visible to the pthreads library. +NOTICE: the threads created by this module will automatically be killed +when the thread calling min_parallel exits. Make sure you only ever call +min_parallel from the same thread that loaded this module. + Although the module will work with threads, it is not reentrant, so use appropriate locking yourself. @@ -30,9 +34,9 @@ use base 'Exporter'; BEGIN { - $VERSION = 1.1; + $VERSION = 1.2; - @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat); + @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink); @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel nreqs); require XSLoader; @@ -103,6 +107,10 @@ error when stat'ing a large file, the results will be silently truncated unless perl itself is compiled with large file support. +=item aio_unlink $pathname, $callback + +Asynchronously unlink a file + =cut min_parallel 1;