--- cvsroot/EV/EV.pm 2007/12/21 05:30:25 1.74 +++ cvsroot/EV/EV.pm 2007/12/22 11:50:04 1.78 @@ -210,7 +210,7 @@ When an error occurs or either the timeout or I/O watcher triggers, then the callback will be called with the received event set (in general -you can expect it to be a combination of C, C, +you can expect it to be a combination of C, C, C and C). EV::once doesn't return anything: the watchers stay active till either @@ -241,7 +241,7 @@ my $watcher = EV::io *STDIN, EV::READ, sub { my ($watcher, $revents) = @_; - warn "yeah, STDIN should not be readable without blocking!\n" + warn "yeah, STDIN should now be readable without blocking!\n" }; All watchers can be active (waiting for events) or inactive (paused). Only @@ -335,8 +335,8 @@ =item $revents = $w->clear_pending -If the watcher is pending, this function returns clears its pending status -and returns its C<$revents> bitset (as if its callback was invoked). If the +If the watcher is pending, this function clears its pending status and +returns its C<$revents> bitset (as if its callback was invoked). If the watcher isn't pending it does nothing and returns C<0>. =item $previous_state = $w->keepalive ($bool) @@ -347,7 +347,7 @@ call C once and when it returns you know that all your jobs are finished (or they forgot to register some watchers for their task :). -Sometimes, however, this gets in your way, for example when you the module +Sometimes, however, this gets in your way, for example when the module that calls C (usually the main program) is not the same module as a long-living watcher (for example a DNS client module written by somebody else even). Then you might want any outstanding requests to be @@ -386,7 +386,7 @@ =item $w = EV::io_ns $fileno_or_fh, $eventmask, $callback -=item $w = $loop->io 8$fileno_or_fh, $eventmask, $callback) +=item $w = $loop->io ($fileno_or_fh, $eventmask, $callback) =item $w = $loop->io_ns ($fileno_or_fh, $eventmask, $callback) @@ -793,7 +793,7 @@ =item $w = $loop->prepare ($callback) -=item $w = $loop->prepare_ns 8$callback) +=item $w = $loop->prepare_ns ($callback) Call the callback just before the process would block. You can still create/modify any watchers at this point. @@ -908,8 +908,8 @@ my $async_check = EV::check sub { }; -This ensures that perl shortly gets into control for a short time, and -also ensures slower overall operation. +This ensures that perl gets into control for a short time to handle any +pending signals, and also ensures (slightly) slower overall operation. =head1 THREADS