summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-09-30 18:35:47 +0000
committerroot <root>2008-09-30 18:35:47 +0000
commit0f8d20c4e280c663bf0421c7ee3db7ff7eaef5f1 (patch)
tree68e8bbf8edd5c907771f55e814f0b6aca35360a3
parent2736c2b0a7a4e6fbb8fdb117eef4cef1a2261eb1 (diff)
*** empty log message ***
-rw-r--r--Changes1
-rw-r--r--ev++.h19
-rw-r--r--ev.pod4
3 files changed, 13 insertions, 11 deletions
diff --git a/Changes b/Changes
index 453e7df..d852cb9 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
Revision history for libev, a high-performance and full-featured event loop.
+WISH? monotonic clocks times/GetTickCount for coarse corrections?
3.44 Mon Sep 29 05:18:39 CEST 2008
- embed watchers now automatically invoke ev_loop_fork on the
embedded loop when the parent loop forks.
diff --git a/ev++.h b/ev++.h
index 52ebf29..c400bf1 100644
--- a/ev++.h
+++ b/ev++.h
@@ -79,21 +79,22 @@ namespace ev {
enum
{
- AUTO = EVFLAG_AUTO,
- NOENV = EVFLAG_NOENV,
+ AUTO = EVFLAG_AUTO,
+ NOENV = EVFLAG_NOENV,
FORKCHECK = EVFLAG_FORKCHECK,
- SELECT = EVBACKEND_SELECT,
- POLL = EVBACKEND_POLL,
- EPOLL = EVBACKEND_EPOLL,
- KQUEUE = EVBACKEND_KQUEUE,
- DEVPOLL = EVBACKEND_DEVPOLL,
- PORT = EVBACKEND_PORT
+
+ SELECT = EVBACKEND_SELECT,
+ POLL = EVBACKEND_POLL,
+ EPOLL = EVBACKEND_EPOLL,
+ KQUEUE = EVBACKEND_KQUEUE,
+ DEVPOLL = EVBACKEND_DEVPOLL,
+ PORT = EVBACKEND_PORT
};
enum
{
NONBLOCK = EVLOOP_NONBLOCK,
- ONESHOT = EVLOOP_ONESHOT
+ ONESHOT = EVLOOP_ONESHOT
};
enum how_t
diff --git a/ev.pod b/ev.pod
index b145894..01070c8 100644
--- a/ev.pod
+++ b/ev.pod
@@ -1627,7 +1627,7 @@ The signal the watcher watches out for.
=head3 Examples
-Example: Try to exit cleanly on SIGINT and SIGTERM.
+Example: Try to exit cleanly on SIGINT.
static void
sigint_cb (struct ev_loop *loop, struct ev_signal *w, int revents)
@@ -1637,7 +1637,7 @@ Example: Try to exit cleanly on SIGINT and SIGTERM.
struct ev_signal signal_watcher;
ev_signal_init (&signal_watcher, sigint_cb, SIGINT);
- ev_signal_start (loop, &sigint_cb);
+ ev_signal_start (loop, &signal_watcher);
=head2 C<ev_child> - watch out for process status changes