… | |
… | |
137 | EOF |
137 | EOF |
138 | |
138 | |
139 | my $can_epoll = have_inc "sys/epoll.h"; |
139 | my $can_epoll = have_inc "sys/epoll.h"; |
140 | $can_epoll = $ENV{EV_EPOLL} if exists $ENV{EV_EPOLL}; |
140 | $can_epoll = $ENV{EV_EPOLL} if exists $ENV{EV_EPOLL}; |
141 | $DEFINE .= " -DEV_USE_EPOLL=" . (0 + (prompt ("Enable epoll backend (y/n)?", $can_epoll ? "y" : "n") =~ /[yY]/)); |
141 | $DEFINE .= " -DEV_USE_EPOLL=" . (0 + (prompt ("Enable epoll backend (y/n)?", $can_epoll ? "y" : "n") =~ /[yY]/)); |
|
|
142 | |
|
|
143 | print <<EOF; |
|
|
144 | |
|
|
145 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
146 | |
|
|
147 | |
|
|
148 | Linux 4.18 introduced another event polling interface, this time using |
|
|
149 | the Linux AIO API. While this API is far superior to epoll and almost |
|
|
150 | rivals kqueue, it also suffers from the same issues as kqueue typically |
|
|
151 | does: only a subset of file types are supported (as of 4.19, I have seen |
|
|
152 | eventfd, pipes, sockets files and some devices, but no ttys). It also |
|
|
153 | is subject arbitrary system-wide limits imposed on it. Therefore, this |
|
|
154 | backend is not used by default, even when it is compiled in, and you have |
|
|
155 | to request it explicitly, e.g. with LIBEV_FLAGS=64. If unsure, accept the |
|
|
156 | default. |
|
|
157 | |
|
|
158 | EOF |
|
|
159 | |
|
|
160 | my $can_linuxaio = have_inc "linux/aio_abi.h"; |
|
|
161 | $can_linuxaio or die; |
|
|
162 | $can_linuxaio = $ENV{EV_LINUXAIO} if exists $ENV{EV_LINUXAIO}; |
|
|
163 | $DEFINE .= " -DEV_USE_LINUXAIO=" . (0 + (prompt ("Enable linux aio backend (y/n)?", $can_linuxaio ? "y" : "n") =~ /[yY]/)); |
142 | |
164 | |
143 | print <<EOF; |
165 | print <<EOF; |
144 | |
166 | |
145 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
167 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
146 | |
168 | |