summaryrefslogtreecommitdiff
path: root/ev++.h
diff options
context:
space:
mode:
authorroot <root>2009-07-10 00:36:21 +0000
committerroot <root>2009-07-10 00:36:21 +0000
commitfe7f056cfc2dc30ab33a1e36b0005fa1e39b0e50 (patch)
treee623ed6d8c81a89e07d3bde1f63c8b6d43c596a2 /ev++.h
parentce8dc1a03da38c405583d4673d8da12c2a26373e (diff)
*** empty log message ***
Diffstat (limited to 'ev++.h')
-rw-r--r--ev++.h17
1 files changed, 12 insertions, 5 deletions
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 ()