… | |
… | |
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 | |