AnyEvent::Impl::Glib

Section: User Contributed Perl Documentation (3)
Updated: 2008-05-01
Index Return to Main Contents
 

NAME

AnyEvent::Impl::Glib - AnyEvent adaptor for Glib  

SYNOPSIS

  use AnyEvent;
  use Glib;

  # this module gets loaded automatically as required

 

DESCRIPTION

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 not) during each loop iteration, it also does so multiple times and rebuilds the poll list for the kernel each time again, dynamically even.

If you create many watchers (as in: more than two), you might consider one of the Glib::EV, EV::Glib or Glib::Event modules that map Glib to other, more efficient, event loops.

This module uses the default Glib main context for all it's watchers.  

SEE ALSO

AnyEvent, Glib.  

AUTHOR

 Marc Lehmann <schmorp@schmorp.de>
 http://home.schmorp.de/


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHOR

linux.jgfs.net manual pages