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

Comparing libev/ev.pod (file contents):
Revision 1.345 by root, Wed Nov 10 14:36:42 2010 UTC vs.
Revision 1.348 by sf-exg, Sat Jan 8 17:52:39 2011 UTC

867running when nothing else is active. 867running when nothing else is active.
868 868
869 ev_signal exitsig; 869 ev_signal exitsig;
870 ev_signal_init (&exitsig, sig_cb, SIGINT); 870 ev_signal_init (&exitsig, sig_cb, SIGINT);
871 ev_signal_start (loop, &exitsig); 871 ev_signal_start (loop, &exitsig);
872 evf_unref (loop); 872 ev_unref (loop);
873 873
874Example: For some weird reason, unregister the above signal handler again. 874Example: For some weird reason, unregister the above signal handler again.
875 875
876 ev_ref (loop); 876 ev_ref (loop);
877 ev_signal_stop (loop, &exitsig); 877 ev_signal_stop (loop, &exitsig);
3427=over 4 3427=over 4
3428 3428
3429=item * Only the libevent-1.4.1-beta API is being emulated. 3429=item * Only the libevent-1.4.1-beta API is being emulated.
3430 3430
3431This was the newest libevent version available when libev was implemented, 3431This was the newest libevent version available when libev was implemented,
3432and is still mostly uncanged in 2010. 3432and is still mostly unchanged in 2010.
3433 3433
3434=item * Use it by including <event.h>, as usual. 3434=item * Use it by including <event.h>, as usual.
3435 3435
3436=item * The following members are fully supported: ev_base, ev_callback, 3436=item * The following members are fully supported: ev_base, ev_callback,
3437ev_arg, ev_fd, ev_res, ev_events. 3437ev_arg, ev_fd, ev_res, ev_events.
3472Care has been taken to keep the overhead low. The only data member the C++ 3472Care has been taken to keep the overhead low. The only data member the C++
3473classes add (compared to plain C-style watchers) is the event loop pointer 3473classes add (compared to plain C-style watchers) is the event loop pointer
3474that the watcher is associated with (or no additional members at all if 3474that the watcher is associated with (or no additional members at all if
3475you disable C<EV_MULTIPLICITY> when embedding libev). 3475you disable C<EV_MULTIPLICITY> when embedding libev).
3476 3476
3477Currently, functions, and static and non-static member functions can be 3477Currently, functions, static and non-static member functions and classes
3478used as callbacks. Other types should be easy to add as long as they only 3478with C<operator ()> can be used as callbacks. Other types should be easy
3479need one additional pointer for context. If you need support for other 3479to add as long as they only need one additional pointer for context. If
3480types of functors please contact the author (preferably after implementing 3480you need support for other types of functors please contact the author
3481it). 3481(preferably after implementing it).
3482 3482
3483Here is a list of things available in the C<ev> namespace: 3483Here is a list of things available in the C<ev> namespace:
3484 3484
3485=over 4 3485=over 4
3486 3486

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines