Default priority of idle event?
[email protected] (Jeff Boes) 21 Aug 2002 15:43:58 -0400
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
Does an idle event have a default priority?
I have a pair of events. One's an idle event, with no 'prio' value in
its constructor. Another is a timer event with a priority of '0'. The
idle event retrieves a bunch of stuff from a queue, and executes the
first item. If the queue cache is not empty it does
$event->w->now();
to queue itself again rather than wait for the idle to expire. The
problem I'm having is that the timer event never gets a chance to
execute unless the queue cache is empty, i.e., now() is skipped.
It acts like either the idle event has a higher priority than '0', or
that events inserted via now() always outrank pre-existing events.
--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise