Linux SoftwareProgrammingLibrariesEvent 1.06

Event 1.06


Event is an Event loop processing. SYNOPSIS use Event qw(loop unloop); # initialize application Event->flavor(attribute
Developer:   Joshua N. Pritikin
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   0K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Event is an Event loop processing.

SYNOPSIS

use Event qw(loop unloop);

# initialize application
Event->flavor(attribute => value, ...);

my $ret = loop();

# and some callback will call
unloop('ok');

The Event module provide a central facility to watch for various types of events and invoke a callback when these events occur. The idea is to delay the handling of events so that they may be dispatched in priority order when it is safe for callbacks to execute.

Events (in the ordinary sense of the word) are detected by watchers, which reify them as events (in the special Event module sense). For clarity, the former type of events may be called "source events", and the latter "target events". Source events, such as signals arriving, happen whether or not they are being watched. If a source event occurs which a watcher is actively watching then the watcher generates a corresponding target event. Target events are only created by watchers. If several watchers are interested in the same source event then each will generate their own target event. Hence, any particular source event may result in zero, one, two, or any number of target events: the same as the number of watchers which were actively watching for it.

Target events are queued to be processed in priority order (priority being determined by the creating watcher) and in FIFO order among events of the same priority. Queued ("pending") events can, in some cases, be cancelled before being processed. A queued event is processed by being passed to the callback function (or method on a particular object or class) which was specified to the watcher.

A watcher, once created, operates autonomously without the Event user having to retain any reference to it. However, keeping a reference makes it possible to modify most of the watcher's characteristics. A watcher can be switched between active and inactive states. When inactive, it does not generate target events.

Some types of source event are not reified as target events immediately. Signals received, for example, are counted initially. The counted signals are reified at certain execution points. Hence, signal events may be processed out of order, and if handled carelessly, on the wrong side of a state change in event handling. A useful way to view this is that occurrence of the source event is not actually the arrival of the signal but is triggered by the counting of the signal.
Reification can be forced when necessary. The schedule on which some other events are created is non-obvious. This is especially the case with watchers that watch for a condition rather than an event. In some cases, target events are generated on a schedule that depends on the operation of the event loop.

Requirements:
  • Perl
    tags target events  source event  events are  the watcher  the same  the event  actively watching  the signal  target event  some cases  source events  watch for  event module  

    Download Event 1.06


     http://mirrors.evolva.ro/CPAN/authors/id/J/JP/JPRIT/Event-1.06.tar.gz


    Authors software

    Event 1.06 (by Joshua N. Pritikin)
    Event is an Event loop processing.

    SYNOPSIS

    use Event qw(loop unloop);

    # initialize application
    Event->flavor(attribute


    Similar software

    Event 1.06 (by Joshua N. Pritikin)
    Event is an Event loop processing.

    SYNOPSIS

    use Event qw(loop unloop);

    # initialize application
    Event->flavor(attribute

    POE::Kernel 0.3502 (by Rocco Caputo)
    POE::Kernel is an event driven threaded application kernel in Perl.

    SYNOPSIS

    POE comes with its own event loop, which is based

    Linux::Inotify2 1.01 (by Marc Lehmann)

    RwdSchedule 1.02 (by Steven Gibson)
    RwdSchedule is an event database program using RubyWebDialogs.

    It can list events, store events, and edit, rename, and delete even

    libevent 1.2a (by Niels Provos)
    libevent library provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a tim

    AnyEvent 2.0 (by Marc A. Lehmann)
    AnyEvent provides an identical interface to multiple event loops

    LooperNG 1.3 (by Mohit Muthanna)
    LooperNG is an intelligent event routing daemon

    SEC 2.3.2 (by Risto Vaarandi)
    SEC is an open source and platform independent event correlation tool that was designed to fill the gap between commercial event corr

    JSignal 0.2 (by Jason Barto)
    JSignal is a loose port of the signal system implemented by GTK's GLib

    Gtk2::Helper 1.122 (by Jorn Reder)
    Gtk2::Helper is a Perl module for convenience functions for the Gtk2 module.

    SYNOPSIS

    use Gtk2::Helper;

    # Handle I/O wat


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags