… | |
… | |
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 | |
3431 | This was the newest libevent version available when libev was implemented, |
3431 | This was the newest libevent version available when libev was implemented, |
3432 | and is still mostly uncanged in 2010. |
3432 | and 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, |
3437 | ev_arg, ev_fd, ev_res, ev_events. |
3437 | ev_arg, ev_fd, ev_res, ev_events. |
… | |
… | |
3472 | Care has been taken to keep the overhead low. The only data member the C++ |
3472 | Care has been taken to keep the overhead low. The only data member the C++ |
3473 | classes add (compared to plain C-style watchers) is the event loop pointer |
3473 | classes add (compared to plain C-style watchers) is the event loop pointer |
3474 | that the watcher is associated with (or no additional members at all if |
3474 | that the watcher is associated with (or no additional members at all if |
3475 | you disable C<EV_MULTIPLICITY> when embedding libev). |
3475 | you disable C<EV_MULTIPLICITY> when embedding libev). |
3476 | |
3476 | |
3477 | Currently, functions, and static and non-static member functions can be |
3477 | Currently, functions, static and non-static member functions and classes |
3478 | used as callbacks. Other types should be easy to add as long as they only |
3478 | with C<operator ()> can be used as callbacks. Other types should be easy |
3479 | need one additional pointer for context. If you need support for other |
3479 | to add as long as they only need one additional pointer for context. If |
3480 | types of functors please contact the author (preferably after implementing |
3480 | you need support for other types of functors please contact the author |
3481 | it). |
3481 | (preferably after implementing it). |
3482 | |
3482 | |
3483 | Here is a list of things available in the C<ev> namespace: |
3483 | Here is a list of things available in the C<ev> namespace: |
3484 | |
3484 | |
3485 | =over 4 |
3485 | =over 4 |
3486 | |
3486 | |