Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.476.261 Times

Alarm::Concurrent 1.0

  Date Added: September 24, 2010  |  Visits: 1.284

Alarm::Concurrent

Report Broken Link
Printer Friendly Version


Product Homepage
Download (90 downloads)

Alarm::Concurrent is a Perl module that allows multiple, concurrent alarms. This module is an attempt to enhance Perls built-in alarm/$SIG{ALRM} functionality. This function, and its associated signal handler, allow you to arrange for your program to receive a SIGALRM signal, which you can then catch and deal with appropriately. Unfortunately, due to the nature of the design of these signals (at the OS level), you can only have one alarm and handler active at any given time. Thats where this module comes in. This module allows you to define multiple alarms, each with an associated handler. These alarms are sequenced (in a queue) but concurrent, which means that their order is preserved but they always go off as their set time expires, regardless of the state of the other alarms. (If youd like to have the alarms only go off in the order you set them, see Alarm::Queued.) To set an alarm, call the setalarm() function with the set time of the alarm and a reference to the subroutine to be called when the alarm goes off. You can then go on with your program and the alarm will be called after the set time has passed. It is also possible to set an alarm that does not have a handler associated with it using Alarm::Concurrent::alarm(). (This function can also be imported into your namespace, in which case it will replace Perls built-in alarm for your package only.) If an alarm that does not have a handler associated with it goes off, the default handler, pointed to by $Alarm::Concurrent::DEFAULT_HANLDER, is called. You can change the default handler by assigning to this variable. The default $Alarm::Concurrent::DEFAULT_HANDLER simply dies with the message "Alarm clock!n". IMPORT/EXPORT No methods are exported by default but you can import any of the functions in the FUNCTIONS section. You can also import the special tag :ALL which will import all the functions in the FUNCTIONS section (except Alarm::Concurrent::restore()). OVERRIDE If you import the special tag :OVERRIDE, this module will override Perls built-in alarm function for every namespace and it will take over Perls magic %SIG variable, changing any attempts to read or write $SIG{ALRM} into calls to gethandler() and sethandler(), respectively (reading and writing to other keys in %SIG is unaffected). This can be useful when you are calling code that tries to set its own alarm "the old fashioned way." It can also, however, be dangerous. Overriding alarm is documented and should be stable but taking over %SIG is more risky (see CAVEATS). Note that if you do not override alarm and %SIG, any code you use that sets "legacy alarms" will disable all of your concurrent alarms. You can call Alarm::Concurrent::restore() to reinstall the Alarm::Concurrent handler. This function can not be imported..

Requirements: No special requirements
Platforms: Linux
Keyword: Alarm Alarmconcurrent Alarms Concurrent Handler Libraries Module Multiple Perl Module Programming Sig
Users rating: 0/10

License: Freeware Size: 7.17 KB
ALARM::CONCURRENT RELATED
Libraries  -  Sys::AlarmCall 1.2
Sys::AlarmCall is a package to handle the logic in timing out calls with alarm() and an ALRM handler, allowing nested calls as well. SYNOPSIS use Sys::AlarmCall; $result = alarm_call($timeout1,$func1,@args1); @result =...
5.12 KB  
Programming  -  TweetHandler 0.2.1
TweetHandler is a log handler Python module to emit records to Twitter. Installation: just use setup.py: sudo python setup.py install or use easy_install: sudo easy_install tweethandler
10.24 KB  
Utilities  -  Dylan Code Collection 1.7
A collection of useful libraries written in the Dylan programming language. The intent of this project is to provide easily accessible libraries for people developing applications using Functional Developer and/or Gwydion Dylan.
673.63 KB  
Programming  -  kin 0.0.2
kin is a set of libraries and tools supporting meta-programming for engineering and technical computing applications. This JVM version of kin has been superseded by the stand-alone version being developed at http://purl.org/net/kin.
477.44 KB  
Libraries  -  Apache::ErrorControl 1.026
Apache::ErrorControl Perl module is an Apache Handler for Templating Apache Error Documents. This mod_perl content handler will make templating your ErrorDocument pages easy. Basically you add a couple of entries to your httpd.conf file restart...
10.24 KB  
Libraries  -  Net:IPMessenger::ToStdoutEventHandler 0.06
Net:IPMessenger::ToStdoutEventHandler is a Perl module for event handler for standard output. SYNOPSIS use Net::IPMessenger::ToStdoutEventHandler; ... $ipmsg->add_event_handler( new Net::IPMessenger::ToStdoutEventHandler ); IP Messenger...
12.29 KB  
Desktop Utilities  -  Touch Alarm Free 1.8.0
Touch Alarm: a convenient, iPhone-style alarm clock can be quickly set with a finger, scrolling hours and minutes. The big figures reduce the possibility of mistakes; there is also a rich variety of skins to fit any taste. Unlike regular WM alarm...
1.73 MB  
Modules  -  PHP-Nuke Index Module Changer 1.0
This module will give you the ability place data from your phpnuke cms anywhere on your index home page. No php programming is required ~ only basic html knowledge , few changes to layout.html , i_config.php configuration file and you can...
481.28 KB  
Libraries  -  Inline-API 0.44
Inline-API is a Perl module that teach you how to bind a programming language to Perl using Inline.pm. SYNOPSIS #!/usr/bin/perl use Inline Foo; say_it(foo); # Use Foo to print "Hello, Foo" __Foo__ foo-sub say_it { foo-my $foo =...
91.14 KB  
Libraries  -  PBJ::JNI 0.1
PBJ::JNI is a Perl module with full access to and from Java virtual machine from Perl. SYNOPSIS use PBJ::JNI::JavaVM; my ($env, $jvm, @vm_opts); my ($cls, $fid, $mid, $out); # Create the Java VM @vm_opts = ("-Xrs", "-Xcheck:jni"); $jvm...
14.34 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB