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

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.330 by root, Tue Aug 31 00:59:55 2010 UTC vs.
Revision 1.331 by root, Tue Aug 31 01:00:48 2010 UTC

119The interface itself is vaguely similar, but not identical to the L<Event> 119The interface itself is vaguely similar, but not identical to the L<Event>
120module. 120module.
121 121
122During the first call of any watcher-creation method, the module tries 122During the first call of any watcher-creation method, the module tries
123to detect the currently loaded event loop by probing whether one of the 123to detect the currently loaded event loop by probing whether one of the
124following modules is already loaded: L<EV>, 124following modules is already loaded: L<EV>, L<AnyEvent::Impl::Perl>,
125L<Event>, L<Glib>, L<AnyEvent::Impl::Perl>, L<Tk>, L<Event::Lib>, L<Qt>, 125L<Event>, L<Glib>, L<Tk>, L<Event::Lib>, L<Qt>, L<POE>. The first one
126L<POE>. The first one found is used. If none are found, the module tries 126found is used. If none are detected, the module tries to load the first
127to load these modules (excluding Tk, Event::Lib, Qt and POE as the pure perl 127four modules in the order given; but note that if L<EV> is not
128adaptor should always succeed) in the order given. The first one that can 128available, the pure-perl L<AnyEvent::Impl::Perl> should always work, so
129be successfully loaded will be used. If, after this, still none could be 129the other two are not normally tried.
130found, AnyEvent will fall back to a pure-perl event loop, which is not
131very efficient, but should work everywhere.
132 130
133Because AnyEvent first checks for modules that are already loaded, loading 131Because AnyEvent first checks for modules that are already loaded, loading
134an event model explicitly before first using AnyEvent will likely make 132an event model explicitly before first using AnyEvent will likely make
135that model the default. For example: 133that model the default. For example:
136 134

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines