From 0f8d20c4e280c663bf0421c7ee3db7ff7eaef5f1 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Sep 2008 18:35:47 +0000 Subject: *** empty log message *** --- Changes | 1 + ev++.h | 19 ++++++++++--------- ev.pod | 4 ++-- 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 - watch out for process status changes -- cgit v1.2.3