diff options
author | root <root> | 2008-09-30 18:35:47 +0000 |
---|---|---|
committer | root <root> | 2008-09-30 18:35:47 +0000 |
commit | 0f8d20c4e280c663bf0421c7ee3db7ff7eaef5f1 (patch) | |
tree | 68e8bbf8edd5c907771f55e814f0b6aca35360a3 | |
parent | 2736c2b0a7a4e6fbb8fdb117eef4cef1a2261eb1 (diff) |
*** empty log message ***
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | ev++.h | 19 | ||||
-rw-r--r-- | ev.pod | 4 |
3 files changed, 13 insertions, 11 deletions
@@ -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. @@ -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 @@ -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 |