… | |
… | |
331 | |
331 | |
332 | =item C<EVBACKEND_KQUEUE> (value 8, most BSD clones) |
332 | =item C<EVBACKEND_KQUEUE> (value 8, most BSD clones) |
333 | |
333 | |
334 | Kqueue deserves special mention, as at the time of this writing, it |
334 | Kqueue deserves special mention, as at the time of this writing, it |
335 | was broken on all BSDs except NetBSD (usually it doesn't work with |
335 | was broken on all BSDs except NetBSD (usually it doesn't work with |
336 | anything but sockets and pipes, except on Darwin, where of course its |
336 | anything but sockets and pipes, except on Darwin, where of course it's |
337 | completely useless). For this reason its not being "autodetected" |
337 | completely useless). For this reason it's not being "autodetected" |
338 | unless you explicitly specify it explicitly in the flags (i.e. using |
338 | unless you explicitly specify it explicitly in the flags (i.e. using |
339 | C<EVBACKEND_KQUEUE>). |
339 | C<EVBACKEND_KQUEUE>). |
340 | |
340 | |
341 | It scales in the same way as the epoll backend, but the interface to the |
341 | It scales in the same way as the epoll backend, but the interface to the |
342 | kernel is more efficient (which says nothing about its actual speed, of |
342 | kernel is more efficient (which says nothing about its actual speed, of |
… | |
… | |
1791 | |
1791 | |
1792 | Make a single, non-blocking sweep over the embedded loop. This works |
1792 | Make a single, non-blocking sweep over the embedded loop. This works |
1793 | similarly to C<ev_loop (embedded_loop, EVLOOP_NONBLOCK)>, but in the most |
1793 | similarly to C<ev_loop (embedded_loop, EVLOOP_NONBLOCK)>, but in the most |
1794 | apropriate way for embedded loops. |
1794 | apropriate way for embedded loops. |
1795 | |
1795 | |
1796 | =item struct ev_loop *loop [read-only] |
1796 | =item struct ev_loop *other [read-only] |
1797 | |
1797 | |
1798 | The embedded event loop. |
1798 | The embedded event loop. |
1799 | |
1799 | |
1800 | =back |
1800 | =back |
1801 | |
1801 | |
… | |
… | |
2140 | Libev can (and often is) directly embedded into host |
2140 | Libev can (and often is) directly embedded into host |
2141 | applications. Examples of applications that embed it include the Deliantra |
2141 | applications. Examples of applications that embed it include the Deliantra |
2142 | Game Server, the EV perl module, the GNU Virtual Private Ethernet (gvpe) |
2142 | Game Server, the EV perl module, the GNU Virtual Private Ethernet (gvpe) |
2143 | and rxvt-unicode. |
2143 | and rxvt-unicode. |
2144 | |
2144 | |
2145 | The goal is to enable you to just copy the neecssary files into your |
2145 | The goal is to enable you to just copy the necessary files into your |
2146 | source directory without having to change even a single line in them, so |
2146 | source directory without having to change even a single line in them, so |
2147 | you can easily upgrade by simply copying (or having a checked-out copy of |
2147 | you can easily upgrade by simply copying (or having a checked-out copy of |
2148 | libev somewhere in your source tree). |
2148 | libev somewhere in your source tree). |
2149 | |
2149 | |
2150 | =head2 FILESETS |
2150 | =head2 FILESETS |
… | |
… | |
2250 | |
2250 | |
2251 | If defined to be C<1>, libev will try to detect the availability of the |
2251 | If defined to be C<1>, libev will try to detect the availability of the |
2252 | realtime clock option at compiletime (and assume its availability at |
2252 | realtime clock option at compiletime (and assume its availability at |
2253 | runtime if successful). Otherwise no use of the realtime clock option will |
2253 | runtime if successful). Otherwise no use of the realtime clock option will |
2254 | be attempted. This effectively replaces C<gettimeofday> by C<clock_get |
2254 | be attempted. This effectively replaces C<gettimeofday> by C<clock_get |
2255 | (CLOCK_REALTIME, ...)> and will not normally affect correctness. See tzhe note about libraries |
2255 | (CLOCK_REALTIME, ...)> and will not normally affect correctness. See the |
2256 | in the description of C<EV_USE_MONOTONIC>, though. |
2256 | note about libraries in the description of C<EV_USE_MONOTONIC>, though. |
2257 | |
2257 | |
2258 | =item EV_USE_SELECT |
2258 | =item EV_USE_SELECT |
2259 | |
2259 | |
2260 | If undefined or defined to be C<1>, libev will compile in support for the |
2260 | If undefined or defined to be C<1>, libev will compile in support for the |
2261 | C<select>(2) backend. No attempt at autodetection will be done: if no |
2261 | C<select>(2) backend. No attempt at autodetection will be done: if no |