ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/EV/EV.pm
(Generate patch)

Comparing cvsroot/EV/EV.pm (file contents):
Revision 1.74 by root, Fri Dec 21 05:30:25 2007 UTC vs.
Revision 1.76 by root, Fri Dec 21 13:30:55 2007 UTC

384 384
385=item $w = EV::io $fileno_or_fh, $eventmask, $callback 385=item $w = EV::io $fileno_or_fh, $eventmask, $callback
386 386
387=item $w = EV::io_ns $fileno_or_fh, $eventmask, $callback 387=item $w = EV::io_ns $fileno_or_fh, $eventmask, $callback
388 388
389=item $w = $loop->io 8$fileno_or_fh, $eventmask, $callback) 389=item $w = $loop->io ($fileno_or_fh, $eventmask, $callback)
390 390
391=item $w = $loop->io_ns ($fileno_or_fh, $eventmask, $callback) 391=item $w = $loop->io_ns ($fileno_or_fh, $eventmask, $callback)
392 392
393As long as the returned watcher object is alive, call the C<$callback> 393As long as the returned watcher object is alive, call the C<$callback>
394when at least one of events specified in C<$eventmask> occurs. 394when at least one of events specified in C<$eventmask> occurs.
791 791
792=item $w = EV::prepare_ns $callback 792=item $w = EV::prepare_ns $callback
793 793
794=item $w = $loop->prepare ($callback) 794=item $w = $loop->prepare ($callback)
795 795
796=item $w = $loop->prepare_ns 8$callback) 796=item $w = $loop->prepare_ns ($callback)
797 797
798Call the callback just before the process would block. You can still 798Call the callback just before the process would block. You can still
799create/modify any watchers at this point. 799create/modify any watchers at this point.
800 800
801See the EV::check watcher, below, for explanations and an example. 801See the EV::check watcher, below, for explanations and an example.
906to be called on every event loop iteration by installing a C<EV::check> 906to be called on every event loop iteration by installing a C<EV::check>
907watcher: 907watcher:
908 908
909 my $async_check = EV::check sub { }; 909 my $async_check = EV::check sub { };
910 910
911This ensures that perl shortly gets into control for a short time, and 911This ensures that perl gets into control for a short time to handle any
912also ensures slower overall operation. 912pending signals, and also ensures (slightly) slower overall operation.
913 913
914=head1 THREADS 914=head1 THREADS
915 915
916Threads are not supported by this module in any way. Perl pseudo-threads 916Threads are not supported by this module in any way. Perl pseudo-threads
917is evil stuff and must die. As soon as Perl gains real threads I will work 917is evil stuff and must die. As soon as Perl gains real threads I will work

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines