… | |
… | |
60 | package EV; |
60 | package EV; |
61 | |
61 | |
62 | use strict; |
62 | use strict; |
63 | |
63 | |
64 | BEGIN { |
64 | BEGIN { |
65 | our $VERSION = '0.1'; |
65 | our $VERSION = '0.5'; |
66 | use XSLoader; |
66 | use XSLoader; |
67 | XSLoader::load "EV", $VERSION; |
67 | XSLoader::load "EV", $VERSION; |
68 | } |
68 | } |
69 | |
69 | |
70 | @EV::Io::ISA = |
70 | @EV::Io::ISA = |
… | |
… | |
197 | |
197 | |
198 | =item $old_priority = $w->priority ($new_priority) |
198 | =item $old_priority = $w->priority ($new_priority) |
199 | |
199 | |
200 | Queries the priority on the watcher and optionally changes it. Pending |
200 | Queries the priority on the watcher and optionally changes it. Pending |
201 | watchers with higher priority will be invoked first. The valid range of |
201 | watchers with higher priority will be invoked first. The valid range of |
202 | priorities lies between EV::MAXPRI (default 3) and EV::MINPRI (default |
202 | priorities lies between EV::MAXPRI (default 2) and EV::MINPRI (default |
203 | -3). If the priority is outside this range it will automatically be |
203 | -2). If the priority is outside this range it will automatically be |
204 | normalised to the nearest valid priority. |
204 | normalised to the nearest valid priority. |
205 | |
205 | |
206 | The default priority of any newly-created weatcher is 0. |
206 | The default priority of any newly-created weatcher is 0. |
207 | |
207 | |
208 | =item $w->trigger ($revents) |
208 | =item $w->trigger ($revents) |
… | |
… | |
464 | |
464 | |
465 | our $DIED = sub { |
465 | our $DIED = sub { |
466 | warn "EV: error in callback (ignoring): $@"; |
466 | warn "EV: error in callback (ignoring): $@"; |
467 | }; |
467 | }; |
468 | |
468 | |
469 | init; |
469 | init |
|
|
470 | or die 'EV: cannot initialise libev backend. bad $ENV{LIBEV_METHODS}?'; |
470 | |
471 | |
471 | push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"]; |
472 | push @AnyEvent::REGISTRY, [EV => "EV::AnyEvent"]; |
472 | |
473 | |
473 | 1; |
474 | 1; |
474 | |
475 | |