AnyEvent::Impl::Glib - AnyEvent adaptor for Glib
use AnyEvent; use Glib; # this module gets loaded automatically as required
This module provides transparent support for AnyEvent. You don't have to do anything to make Glib work with AnyEvent except by loading Glib before creating the first AnyEvent watcher.
Glib is probably the most inefficient event loop that has ever seen the light of the world: Glib not only scans all its watchers (really, ALL of them, whether I/O-related, timer-related or what not) during each loop iteration, it also does so multiple times and rebuilds the poll list for the kernel each time again, dynamically even.
On the positive side, and most importantly, Glib generally works correctly, no quarrels there.
This module uses the default Glib main context for all its watchers.
Marc Lehmann <firstname.lastname@example.org> http://home.schmorp.de/