… | |
… | |
225 | void unref () throw () |
225 | void unref () throw () |
226 | { |
226 | { |
227 | ev_unref (EV_AX); |
227 | ev_unref (EV_AX); |
228 | } |
228 | } |
229 | |
229 | |
230 | #if EV_MINIMAL < 2 |
230 | #if EV_FEATURE_API |
231 | unsigned int count () const throw () |
231 | unsigned int count () const throw () |
232 | { |
232 | { |
233 | return ev_loop_count (EV_AX); |
233 | return ev_loop_count (EV_AX); |
234 | } |
234 | } |
235 | |
235 | |
… | |
… | |
478 | } |
478 | } |
479 | |
479 | |
480 | template<class K, void (K::*method)()> |
480 | template<class K, void (K::*method)()> |
481 | static void method_noargs_thunk (EV_P_ ev_watcher *w, int revents) |
481 | static void method_noargs_thunk (EV_P_ ev_watcher *w, int revents) |
482 | { |
482 | { |
483 | static_cast<K *>(w->data)->*method |
483 | (static_cast<K *>(w->data)->*method) |
484 | (); |
484 | (); |
485 | } |
485 | } |
486 | |
486 | |
487 | void operator ()(int events = EV_UNDEF) |
487 | void operator ()(int events = EV_UNDEF) |
488 | { |
488 | { |