develooper Front page | perl.loop | Postings from December 2008

Re: Event.pm error message

Thread Previous
From:
Joshua N Pritikin
Date:
December 29, 2008 11:25
Subject:
Re: Event.pm error message
Message ID:
20081229192543.GA13962@localhost
On Mon, Dec 29, 2008 at 01:41:53PM -0500, Jeff Boes wrote:
> Joshua N Pritikin wrote:
> > Let us know what happens!
> 
> I am a bit confused, still. Should I make *all* my events reentrant,

The reentrant constraint is just for debugging. You don't want to keep 
re-entering the main event loop infinitely because you'll eventually run 
out of stack. If you are certain that your code works correctly then you 
can make all your watchers reentrant to avoid triggering the error.

> Or just the ones I expect to be fired up *from* the "sweep" calls?

Yah, that's the disciplined way to do it.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About