… | |
… | |
226 | { |
226 | { |
227 | ev_unref (EV_AX); |
227 | ev_unref (EV_AX); |
228 | } |
228 | } |
229 | |
229 | |
230 | #if EV_FEATURE_API |
230 | #if EV_FEATURE_API |
231 | unsigned int count () const throw () |
231 | unsigned int iteration () const throw () |
232 | { |
232 | { |
233 | return ev_loop_count (EV_AX); |
233 | return ev_iteration (EV_AX); |
234 | } |
234 | } |
235 | |
235 | |
236 | unsigned int depth () const throw () |
236 | unsigned int depth () const throw () |
237 | { |
237 | { |
238 | return ev_loop_depth (EV_AX); |
238 | return ev_depth (EV_AX); |
239 | } |
239 | } |
240 | |
240 | |
241 | void set_io_collect_interval (tstamp interval) throw () |
241 | void set_io_collect_interval (tstamp interval) throw () |
242 | { |
242 | { |
243 | ev_set_io_collect_interval (EV_AX_ interval); |
243 | ev_set_io_collect_interval (EV_AX_ interval); |
… | |
… | |
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 | { |