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

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.296 by root, Sun Aug 26 03:17:35 2018 UTC vs.
Revision 1.297 by root, Thu Nov 29 19:53:46 2018 UTC

1385 IO::AIO::mmap $data, -s $fh, IO::AIO::PROT_READ, IO::AIO::MAP_SHARED, $fh; 1385 IO::AIO::mmap $data, -s $fh, IO::AIO::PROT_READ, IO::AIO::MAP_SHARED, $fh;
1386 aio_mlock $data; # mlock in background 1386 aio_mlock $data; # mlock in background
1387 1387
1388=item aio_mlockall $flags, $callback->($status) 1388=item aio_mlockall $flags, $callback->($status)
1389 1389
1390Calls the C<mlockall> function with the given C<$flags> (a combination of 1390Calls the C<mlockall> function with the given C<$flags> (a
1391C<IO::AIO::MCL_CURRENT> and C<IO::AIO::MCL_FUTURE>). 1391combination of C<IO::AIO::MCL_CURRENT>, C<IO::AIO::MCL_FUTURE> and
1392C<IO::AIO::MCL_ONFAULT>).
1392 1393
1393On systems that do not implement C<mlockall>, this function returns C<-1> 1394On systems that do not implement C<mlockall>, this function returns C<-1>
1394and sets errno to C<ENOSYS>. 1395and sets errno to C<ENOSYS>. Similarly, flag combinations not supported
1396by the system result in a return value of C<-1> with errno being set to
1397C<EINVAL>.
1395 1398
1396Note that the corresponding C<munlockall> is synchronous and is 1399Note that the corresponding C<munlockall> is synchronous and is
1397documented under L<MISCELLANEOUS FUNCTIONS>. 1400documented under L<MISCELLANEOUS FUNCTIONS>.
1398 1401
1399Example: asynchronously lock all current and future pages into memory. 1402Example: asynchronously lock all current and future pages into memory.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines