1AnyEvent::Impl::Glib(3)User Contributed Perl DocumentatioAnnyEvent::Impl::Glib(3)
2
3
4

NAME

6       AnyEvent::Impl::Glib - AnyEvent adaptor for Glib
7

SYNOPSIS

9          use AnyEvent;
10          use Glib;
11
12          # this module gets loaded automatically as required
13

DESCRIPTION

15       This module provides transparent support for AnyEvent. You don't have
16       to do anything to make Glib work with AnyEvent except by loading Glib
17       before creating the first AnyEvent watcher.
18
19       Glib is probably the most inefficient event loop that has ever seen the
20       light of the world: Glib not only scans all its watchers (really, ALL
21       of them, whether I/O-related, timer-related or what not) during each
22       loop iteration, it also does so multiple times and rebuilds the poll
23       list for the kernel each time again, dynamically even.
24
25       On the positive side, and most importantly, Glib generally works
26       correctly, no quarrels there.
27
28       If you create many watchers (as in: more than two), you might consider
29       one of the Glib::EV, EV::Glib or Glib::Event modules that map Glib to
30       other, more efficient, event loops.
31
32       This module uses the default Glib main context for all its watchers.
33

SEE ALSO

35       AnyEvent, Glib.
36

AUTHOR

38        Marc Lehmann <schmorp@schmorp.de>
39        http://home.schmorp.de/
40
41
42
43perl v5.12.1                      2009-08-09           AnyEvent::Impl::Glib(3)
Impressum