diff options
author | root <root> | 2009-07-10 00:36:21 +0000 |
---|---|---|
committer | root <root> | 2009-07-10 00:36:21 +0000 |
commit | fe7f056cfc2dc30ab33a1e36b0005fa1e39b0e50 (patch) | |
tree | e623ed6d8c81a89e07d3bde1f63c8b6d43c596a2 /ev++.h | |
parent | ce8dc1a03da38c405583d4673d8da12c2a26373e (diff) |
*** empty log message ***
Diffstat (limited to 'ev++.h')
-rw-r--r-- | ev++.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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 () |