Re: Event examples || documentation
[email protected] (Joshua N Pritikin)
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Oct 16, 2000 at 04:24:55PM -0500, [email protected] wrote: > From the pod: > > hits=>$int > A watcher increments 'hits' every time it registers an event. > Signals in > quick succession can be clumped into a single event. > > What happens if two sigs come in at the same time? Then $e->hits == 2; > Will all signals be handled by the cb accordingly? Yes. > Also, does signal handling using Event.pm suffer from the same > problems > in perl where a signal handler that does something that malloc()'s? > ie print(). No. Signals are handled outside of the signal handler so they will never cause crashes. > >Only loop() once. ;-) > > Ok. I have a better understanding now. loop until unloop() (which > needs to be > in a cb) So I can create many event watchers, and once I loop(), > they all kick off. Yah. -- Never ascribe to malice that which can be explained by stupidity. (via, but not speaking for Deutsche Bank)