ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.270 by root, Fri Sep 18 21:02:12 2009 UTC vs.
Revision 1.272 by root, Tue Nov 24 06:39:28 2009 UTC

410 410
411This backend maps C<EV_READ> to C<POLLIN | POLLERR | POLLHUP>, and 411This backend maps C<EV_READ> to C<POLLIN | POLLERR | POLLHUP>, and
412C<EV_WRITE> to C<POLLOUT | POLLERR | POLLHUP>. 412C<EV_WRITE> to C<POLLOUT | POLLERR | POLLHUP>.
413 413
414=item C<EVBACKEND_EPOLL> (value 4, Linux) 414=item C<EVBACKEND_EPOLL> (value 4, Linux)
415
416Use the linux-specific epoll(7) interface (for both pre- and post-2.6.9
417kernels).
415 418
416For few fds, this backend is a bit little slower than poll and select, 419For few fds, this backend is a bit little slower than poll and select,
417but it scales phenomenally better. While poll and select usually scale 420but it scales phenomenally better. While poll and select usually scale
418like O(total_fds) where n is the total number of fds (or the highest fd), 421like O(total_fds) where n is the total number of fds (or the highest fd),
419epoll scales either O(1) or O(active_fds). 422epoll scales either O(1) or O(active_fds).
2136to install a fork handler with C<pthread_atfork> that resets it. That will 2139to install a fork handler with C<pthread_atfork> that resets it. That will
2137catch fork calls done by libraries (such as the libc) as well. 2140catch fork calls done by libraries (such as the libc) as well.
2138 2141
2139In current versions of libev, you can also ensure that the signal mask is 2142In current versions of libev, you can also ensure that the signal mask is
2140not blocking any signals (except temporarily, so thread users watch out) 2143not blocking any signals (except temporarily, so thread users watch out)
2141by specifying the C<EVFLAG_NOSIGNALFD> when creating the event loop. This 2144by specifying the C<EVFLAG_NOSIGFD> when creating the event loop. This
2142is not guaranteed for future versions, however. 2145is not guaranteed for future versions, however.
2143 2146
2144=head3 Watcher-Specific Functions and Data Members 2147=head3 Watcher-Specific Functions and Data Members
2145 2148
2146=over 4 2149=over 4

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines