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

Comparing libev/ev.pod (file contents):
Revision 1.396 by root, Sat Feb 4 17:57:55 2012 UTC vs.
Revision 1.398 by root, Mon Apr 2 18:39:54 2012 UTC

567 567
568It scales in the same way as the epoll backend, but the interface to the 568It scales in the same way as the epoll backend, but the interface to the
569kernel is more efficient (which says nothing about its actual speed, of 569kernel is more efficient (which says nothing about its actual speed, of
570course). While stopping, setting and starting an I/O watcher does never 570course). While stopping, setting and starting an I/O watcher does never
571cause an extra system call as with C<EVBACKEND_EPOLL>, it still adds up to 571cause an extra system call as with C<EVBACKEND_EPOLL>, it still adds up to
572two event changes per incident. Support for C<fork ()> is very bad (but 572two event changes per incident. Support for C<fork ()> is very bad (you
573sane, unlike epoll) and it drops fds silently in similarly hard-to-detect 573might have to leak fd's on fork, but it's more sane than epoll) and it
574cases 574drops fds silently in similarly hard-to-detect cases
575 575
576This backend usually performs well under most conditions. 576This backend usually performs well under most conditions.
577 577
578While nominally embeddable in other event loops, this doesn't work 578While nominally embeddable in other event loops, this doesn't work
579everywhere, so you might need to test for this. And since it is broken 579everywhere, so you might need to test for this. And since it is broken
3917with C<operator ()> can be used as callbacks. Other types should be easy 3917with C<operator ()> can be used as callbacks. Other types should be easy
3918to add as long as they only need one additional pointer for context. If 3918to add as long as they only need one additional pointer for context. If
3919you need support for other types of functors please contact the author 3919you need support for other types of functors please contact the author
3920(preferably after implementing it). 3920(preferably after implementing it).
3921 3921
3922For all this to work, your C++ compiler either has to use the same calling
3923conventions as your C compiler (for static member functions), or you have
3924to embed libev and compile libev itself as C++.
3925
3922Here is a list of things available in the C<ev> namespace: 3926Here is a list of things available in the C<ev> namespace:
3923 3927
3924=over 4 3928=over 4
3925 3929
3926=item C<ev::READ>, C<ev::WRITE> etc. 3930=item C<ev::READ>, C<ev::WRITE> etc.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines