Debian Codegraph @

debian/control

raw
1 Source: libio-aio-perl
2 Maintainer: Debian Perl Group <[email protected]>
3 Uploaders: gregor herrmann <[email protected]>
4 Section: perl
5 Testsuite: autopkgtest-pkg-perl
6 Priority: optional
7 Build-Depends: debhelper-compat (= 13),
8 libcanary-stability-perl,
9 libcommon-sense-perl <!nocheck>,
10 libperl-dev,
11 perl-xs-dev,
12 perl:native
13 Standards-Version: 4.6.2
14 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libio-aio-perl
15 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libio-aio-perl.git
16 Homepage: https://metacpan.org/release/IO-AIO
17 Rules-Requires-Root: no
18
19 Package: libio-aio-perl
20 Architecture: any
21 Depends: ${misc:Depends},
22 ${perl:Depends},
23 ${shlibs:Depends},
24 libcommon-sense-perl
25 Description: asynchronous IO module for Perl
26 IO::AIO module implements asynchronous I/O using whatever means your
27 operating system supports. It is implemented as an interface to the libeio
28 library: http://software.schmorp.de/pkg/libeio.html.
29 .
30 Asynchronous means that operations that can normally block your program
31 (e.g. reading from disk) will be done asynchronously: the operation
32 will still block, but you can do something else in the meantime. This
33 is extremely useful for programs that need to stay interactive even
34 when doing heavy I/O (GUI programs, high performance network servers
35 etc.), but can also be used to easily do operations in parallel that are
36 normally done sequentially, e.g. stat'ing many files, which is much faster
37 on a RAID volume or over NFS when you do a number of stat operations
38 concurrently.
39 .
40 While most of this works on all types of file descriptors (for
41 example sockets), using these functions on file descriptors that
42 support nonblocking operation (again, sockets, pipes etc.) is
43 very inefficient. Use an event loop for that (such as the L<EV>
44 module): IO::AIO will naturally fit into such an event loop itself.
45 .
46 In this version, a number of threads are started that execute your
47 requests and signal their completion. You don't need thread support
48 in perl, and the threads created by this module will not be visible
49 to perl. In the future, this module might make use of the native aio
50 functions available on many operating systems. However, they are often
51 not well-supported or restricted (GNU/Linux doesn't allow them on normal
52 files currently, for example), and they would only support aio_read and
53 aio_write, so the remaining functionality would have to be implemented
54 using threads anyway.
55 .
56 Although the module will work in the presence of other (Perl-) threads,
57 it is currently not reentrant in any way, so use appropriate locking
58 yourself, always call poll_cb from within the same thread, or never
59 call poll_cb (or other aio_ functions) recursively.