Subject: | Timer Event Not Firing |
# dpkg -l | grep libevent
ii libevent-dev 1.1a-1 Development libraries, header files and docs
ii libevent1 1.1a-1 An asynchronous event notification libra
This program does not do what I expect it to:
--
#!/usr/bin/perl
use Event::Lib qw/no_poll/;
my $second;
sub timer {
my $event = shift;
print "\r ", ++$seconds;
$event->add(1);
}
print $Event::Lib::VERSION, "\n";
my $timer = timer_new(\&timer);
$timer->add(1);
event_dispatch();
--
# perl [that program]
0.09
--
The -- are not part of the output. I expect to see a series of:
1
2
3
etc etc
Perl Version:
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
O/S:
Linux gondor 2.6.11 #1 Sun Jun 5 11:04:21 CST 2005 i686 GNU/Linux
[that is Debian Sid with a customer 2.6.11 kernel]
PS: I've tried the same thing on Mac OS X with similar results (or lack of results).
DSL