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.16 by root, Thu May 6 15:05:57 2004 UTC vs.
Revision 1.17 by root, Sun Jul 18 10:55:34 2004 UTC

16Instead, in this module a number of (non-posix) threads are started that 16Instead, in this module a number of (non-posix) threads are started that
17execute your read/writes and signal their completion. You don't need 17execute your read/writes and signal their completion. You don't need
18thread support in your libc or perl, and the threads created by this 18thread support in your libc or perl, and the threads created by this
19module will not be visible to the pthreads library. 19module will not be visible to the pthreads library.
20 20
21NOTICE: the threads created by this module will automatically be killed
22when the thread calling min_parallel exits. Make sure you only ever call
23min_parallel from the same thread that loaded this module.
24
21Although the module will work with threads, it is not reentrant, so use 25Although the module will work with threads, it is not reentrant, so use
22appropriate locking yourself. 26appropriate locking yourself.
23 27
24=over 4 28=over 4
25 29
28package Linux::AIO; 32package Linux::AIO;
29 33
30use base 'Exporter'; 34use base 'Exporter';
31 35
32BEGIN { 36BEGIN {
33 $VERSION = 1.1; 37 $VERSION = 1.2;
34 38
35 @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat); 39 @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink);
36 @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);
37 41
38 require XSLoader; 42 require XSLoader;
39 XSLoader::load Linux::AIO, $VERSION; 43 XSLoader::load Linux::AIO, $VERSION;
40} 44}
101 105
102Currently, the stats are always 64-bit-stats, i.e. instead of returning an 106Currently, the stats are always 64-bit-stats, i.e. instead of returning an
103error when stat'ing a large file, the results will be silently truncated 107error when stat'ing a large file, the results will be silently truncated
104unless perl itself is compiled with large file support. 108unless perl itself is compiled with large file support.
105 109
110=item aio_unlink $pathname, $callback
111
112Asynchronously unlink a file
113
106=cut 114=cut
107 115
108min_parallel 1; 116min_parallel 1;
109 117
110END { 118END {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines