Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

How to wait for events, and not lose any, while processing them ?

by Eyck (Priest)
on Jan 26, 2009 at 09:58 UTC ( [id://738893]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ($keepOnWatching) {
     $inotify->watch($watchpoint,IN_ALL_EVENTS);
    ...
     # undef $inotify
     processEvents(@events);
    }
    
  2. or download this
     $inotify->watch($watchpoint,IN_ALL_EVENTS);
    while ($keepOnWatching) {
     @events=$inotify->read;# sleep, and wake when events arrive
     processEvents(@events);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://738893]
Approved by svenXY
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-16 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found