Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Blocking call with time limit ( Linux::Inotify2 )

by Corion (Patriarch)
on Sep 08, 2010 at 08:56 UTC ( [id://859288]=note: print w/replies, xml ) Need Help??


in reply to Blocking call with time limit ( Linux::Inotify2 )

I'm not sure whether the API for Linux::Inotify2 allows for a timeout.

Before entering into the melee of signals or threads, I would look at the AnyEvent integration of Linux::Inotify2, maybe AnyEvent::Filesys::Notify. Using something like AnyEvent will turn parts of your program inside out, as you will get callbacks instead of actively check on things yourself.

  • Comment on Re: Blocking call with time limit ( Linux::Inotify2 )

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://859288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found