… | |
… | |
68 | package EV; |
68 | package EV; |
69 | |
69 | |
70 | use strict; |
70 | use strict; |
71 | |
71 | |
72 | BEGIN { |
72 | BEGIN { |
73 | our $VERSION = '3.0'; |
73 | our $VERSION = '3.1'; |
74 | use XSLoader; |
74 | use XSLoader; |
75 | XSLoader::load "EV", $VERSION; |
75 | XSLoader::load "EV", $VERSION; |
76 | } |
76 | } |
77 | |
77 | |
78 | @EV::IO::ISA = |
78 | @EV::IO::ISA = |
… | |
… | |
84 | @EV::Idle::ISA = |
84 | @EV::Idle::ISA = |
85 | @EV::Prepare::ISA = |
85 | @EV::Prepare::ISA = |
86 | @EV::Check::ISA = |
86 | @EV::Check::ISA = |
87 | @EV::Embed::ISA = |
87 | @EV::Embed::ISA = |
88 | @EV::Fork::ISA = |
88 | @EV::Fork::ISA = |
|
|
89 | @EV::Async::ISA = |
89 | "EV::Watcher"; |
90 | "EV::Watcher"; |
90 | |
91 | |
91 | @EV::Loop::Default::ISA = "EV::Loop"; |
92 | @EV::Loop::Default::ISA = "EV::Loop"; |
92 | |
93 | |
93 | =head1 EVENT LOOPS |
94 | =head1 EVENT LOOPS |
… | |
… | |
968 | |
969 | |
969 | The C<embed_ns> variant doesn't start (activate) the newly created watcher. |
970 | The C<embed_ns> variant doesn't start (activate) the newly created watcher. |
970 | |
971 | |
971 | =back |
972 | =back |
972 | |
973 | |
|
|
974 | =head3 ASYNC WATCHERS - how to wake up another event loop |
|
|
975 | |
|
|
976 | Async watchers are provided by EV, but have little use in perl directly, as perl |
|
|
977 | neither supports threads nor direct access to signal handlers or other |
|
|
978 | contexts where they could be of value. |
|
|
979 | |
|
|
980 | It is, however, possible to use them from the XS level. |
|
|
981 | |
|
|
982 | Please see the libev documentation for further details. |
|
|
983 | |
973 | |
984 | |
974 | =head1 PERL SIGNALS |
985 | =head1 PERL SIGNALS |
975 | |
986 | |
976 | While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour |
987 | While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour |
977 | with EV is as the same as any other C library: Perl-signals will only be |
988 | with EV is as the same as any other C library: Perl-signals will only be |