… | |
… | |
67 | package EV; |
67 | package EV; |
68 | |
68 | |
69 | use strict; |
69 | use strict; |
70 | |
70 | |
71 | BEGIN { |
71 | BEGIN { |
72 | our $VERSION = '1.4'; |
72 | our $VERSION = '1.6'; |
73 | use XSLoader; |
73 | use XSLoader; |
74 | XSLoader::load "EV", $VERSION; |
74 | XSLoader::load "EV", $VERSION; |
75 | } |
75 | } |
76 | |
76 | |
77 | @EV::IO::ISA = |
77 | @EV::IO::ISA = |
… | |
… | |
131 | innermost call to EV::loop return. |
131 | innermost call to EV::loop return. |
132 | |
132 | |
133 | When called with an argument of EV::UNLOOP_ALL, all calls to EV::loop will return as |
133 | When called with an argument of EV::UNLOOP_ALL, all calls to EV::loop will return as |
134 | fast as possible. |
134 | fast as possible. |
135 | |
135 | |
|
|
136 | =item $count = EV::loop_count |
|
|
137 | |
|
|
138 | Return the number of times the event loop has polled for new |
|
|
139 | events. Sometiems useful as a generation counter. |
|
|
140 | |
136 | =item EV::once $fh_or_undef, $events, $timeout, $cb->($revents) |
141 | =item EV::once $fh_or_undef, $events, $timeout, $cb->($revents) |
137 | |
142 | |
138 | This function rolls together an I/O and a timer watcher for a single |
143 | This function rolls together an I/O and a timer watcher for a single |
139 | one-shot event without the need for managing a watcher object. |
144 | one-shot event without the need for managing a watcher object. |
140 | |
145 | |
… | |
… | |
784 | |
789 | |
785 | 1; |
790 | 1; |
786 | |
791 | |
787 | =head1 SEE ALSO |
792 | =head1 SEE ALSO |
788 | |
793 | |
789 | L<EV::DNS>. |
794 | L<EV::ADNS> (asynchronous dns), L<Glib::EV> (makes Glib/Gtk2 use EV as |
|
|
795 | event loop), L<Coro::EV> (efficient coroutines with EV). |
790 | |
796 | |
791 | =head1 AUTHOR |
797 | =head1 AUTHOR |
792 | |
798 | |
793 | Marc Lehmann <schmorp@schmorp.de> |
799 | Marc Lehmann <schmorp@schmorp.de> |
794 | http://home.schmorp.de/ |
800 | http://home.schmorp.de/ |