--- EV/EV.pm 2007/12/08 02:55:13 1.64 +++ EV/EV.pm 2007/12/08 14:12:03 1.65 @@ -162,8 +162,20 @@ of them triggers, then they will be stopped and freed, and the callback invoked. +=item EV::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 C<$revents> (a combination of +C and C) happened on the file descriptor C<$fd>. + +=item EV::feed_signal_event ($signal) + +Feed a signal event into EV. EV will react to this call as if the signal +specified by C<$signal> had occured. + =back + =head2 WATCHER OBJECTS A watcher is an object that gets created to record your interest in some @@ -255,10 +267,21 @@ Note that the priority semantics have not yet been fleshed out and are subject to almost certain change. -=item $w->trigger ($revents) +=item $w->invoke ($revents) Call the callback *now* with the given event mask. +=item $w->feed_event ($revents) + +Feed some events on this watcher into EV. EV will react to this call as if +the watcher had received the given C<$revents> mask. + +=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 +watcher isn't pending it does nothing and returns C<0>. + =item $previous_state = $w->keepalive ($bool) Normally, C will return when there are no active watchers