Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 13 years ago
parent
commit
625fd42de1
  1. 1
      Changes
  2. 8
      ev.pod

1
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.

8
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<fd> is less than 0, then no I/O watcher will be started and events
is being ignored. Otherwise, an C<ev_io> watcher for the given C<fd> and
C<events> set will be created and started.
If C<fd> is less than 0, then no I/O watcher will be started and the
C<events> argument is being ignored. Otherwise, an C<ev_io> watcher for
the given C<fd> and C<events> set will be created and started.
If C<timeout> is less than 0, then no timeout watcher will be
started. Otherwise an C<ev_timer> watcher with after = C<timeout> (and

Loading…
Cancel
Save