--- EV/README 2010/10/25 11:30:45 1.38 +++ EV/README 2011/01/11 13:45:28 1.39 @@ -242,17 +242,20 @@ The $flags argument can be one of the following: - 0 as above - EV::LOOP_ONESHOT block at most once (wait, but do not loop) - EV::LOOP_NONBLOCK do not block at all (fetch/handle events but do not wait) - - EV::unloop [$how] - $loop->unloop ([$how]) - When called with no arguments or an argument of EV::UNLOOP_ONE, - makes the innermost call to EV::loop return. + 0 as above + EV::LOOP_ONCE block at most once (wait, but do not loop) + EV::LOOP_NOWAIT do not block at all (fetch/handle events but do not wait) + + EV::break [$how] + $loop->break ([$how]) + When called with no arguments or an argument of EV::BREAK_ONE, makes + the innermost call to EV::loop return. - When called with an argument of EV::UNLOOP_ALL, all calls to - EV::loop will return as fast as possible. + When called with an argument of EV::BREAK_ALL, all calls to EV::loop + will return as fast as possible. + + When called with an argument of EV::BREAK_CANCEL, any pending break + will be cancelled. $count = EV::loop_count $count = $loop->loop_count @@ -282,16 +285,21 @@ either of them triggers, then they will be stopped and freed, and the callback invoked. - EV::feed_fd_event ($fd, $revents) + EV::feed_fd_event $fd, $revents $loop->feed_fd_event ($fd, $revents) Feed an event on a file descriptor into EV. EV will react to this call as if the readyness notifications specified by $revents (a combination of "EV::READ" and "EV::WRITE") happened on the file descriptor $fd. - EV::feed_signal_event ($signal) - Feed a signal event into EV. EV will react to this call as if the - signal specified by $signal had occured. + EV::feed_signal_event $signal + Feed a signal event into the default loop. EV will react to this + call as if the signal specified by $signal had occured. + + EV::feed_signal $signal + Feed a signal event into EV - unlike "EV::feed_signal_event", this + works regardless of which loop has registered the signal, and is + mainly useful fro custom signal implementations. EV::set_io_collect_interval $time $loop->set_io_collect_interval ($time)