summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorroot <root>2009-04-15 19:35:53 +0000
committerroot <root>2009-04-15 19:35:53 +0000
commit063940f2d384a70bbf0499865ca0e54e99b96f23 (patch)
treebccd47935a27a6d4e0e407bc27500a8a5aee2fce /ev.h
parentfccdbf50f2094e18861bcb38d5b980212d04c242 (diff)
resume/suspend
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/ev.h b/ev.h
index 70746ab..c9e93cd 100644
--- a/ev.h
+++ b/ev.h
@@ -526,8 +526,16 @@ void ev_set_timeout_collect_interval (EV_P_ ev_tstamp interval); /* sleep at lea
void ev_ref (EV_P);
void ev_unref (EV_P);
-/* convenience function, wait for a single event, without registering an event watcher */
-/* if timeout is < 0, do wait indefinitely */
+/*
+ * stop/start the timer handling.
+ */
+void ev_suspend (EV_P);
+void ev_resume (EV_P);
+
+/*
+ * convenience function, wait for a single event, without registering an event watcher
+ * if timeout is < 0, do wait indefinitely
+ */
void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg);
#endif