From fe7f056cfc2dc30ab33a1e36b0005fa1e39b0e50 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 10 Jul 2009 00:36:21 +0000 Subject: *** empty log message *** --- ev++.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'ev++.h') diff --git a/ev++.h b/ev++.h index f1b4c6f..4cec699 100644 --- a/ev++.h +++ b/ev++.h @@ -207,11 +207,6 @@ namespace ev { #endif } - unsigned int count () const throw () - { - return ev_loop_count (EV_AX); - } - unsigned int backend () const throw () { return ev_backend (EV_AX); @@ -232,6 +227,17 @@ namespace ev { ev_unref (EV_AX); } +#if EV_MINIMAL < 2 + unsigned int count () const throw () + { + return ev_loop_count (EV_AX); + } + + unsigned int depth () const throw () + { + return ev_loop_depth (EV_AX); + } + void set_io_collect_interval (tstamp interval) throw () { ev_set_io_collect_interval (EV_AX_ interval); @@ -241,6 +247,7 @@ namespace ev { { ev_set_timeout_collect_interval (EV_AX_ interval); } +#endif // function callback void once (int fd, int events, tstamp timeout, void (*cb)(int, void *), void *arg = 0) throw () -- cgit v1.2.3