Re: Creating active timers within callbacks
[email protected] (Jochen Stenzel) Thu, 8 Jan 2004 01:19:23 +0100
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
Hello, John,
JC> The timer watchers created are returned when I do a
JC> all_watchers(), but their callbacks are NEVER subsequently
JC> executed (even with PRIO_HIGH and a hardcoded short interval).
JC> Is there anything more I may need to do for the timers to be active?
you just have to build the (active) watchers. Could you send a piece
of code to the list to demonstrate your algorithm?
I'm wondering that you mention all_watchers(), but I don't know the
code, so it would be interesting. I'd suggest to call Event's timer()
method from within the callback of the io watcher.
JC> Also, if there is more documentation available in addition to the
JC> perldoc, that would be very helpful.
There's a tutorial coming with the Event package, in PDF format.
Greetings
Jochen