From c53135daec2ac56c937fc5d516031ecbaebdb956 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Sep 2008 19:51:44 +0000 Subject: *** empty log message *** --- Changes | 1 + ev.pod | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index d852cb9..44820e2 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for libev, a high-performance and full-featured event loop. WISH? monotonic clocks times/GetTickCount for coarse corrections? +TODO: make ev_once timeout=0 useful, and make I/O always win. 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.pod b/ev.pod index 284c645..a3b3467 100644 --- a/ev.pod +++ b/ev.pod @@ -2504,14 +2504,14 @@ There are some other functions of possible interest. Described. Here. Now. =item ev_once (loop, int fd, int events, ev_tstamp timeout, callback) This function combines a simple timer and an I/O watcher, calls your -callback on whichever event happens first and automatically stop both +callback on whichever event happens first and automatically stops both watchers. This is useful if you want to wait for a single event on an fd or timeout without having to allocate/configure/start/stop/free one or more watchers yourself. -If C is less than 0, then no I/O watcher will be started and events -is being ignored. Otherwise, an C watcher for the given C and -C set will be created and started. +If C is less than 0, then no I/O watcher will be started and the +C argument is being ignored. Otherwise, an C watcher for +the given C and C set will be created and started. If C is less than 0, then no timeout watcher will be started. Otherwise an C watcher with after = C (and -- cgit v1.2.3