Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Threaded Linux::Inotify2

by pbrthemaster (Initiate)
on Sep 13, 2013 at 10:15 UTC ( #1053880=perlquestion: print w/ replies, xml ) Need Help??
pbrthemaster has asked for the wisdom of the Perl Monks concerning the following question:

I currently have a stand-alone script which I want to make it multi-threaded.

As of now, I tried two modules IPC::Shareable and forks::shared to share the objects but I didn't get any luck so far.

What happens with those modules is,

* IPC::Shareable : Once the object is created, IPC::Shareable causes something to call Linux::Inotify2->DESTROY which closes the file handle.

* forks::shared : Some capabilities in the object are lost. For ex, the fd returns *empty*

Can anyone pls tell how to share Linux::Inotify2 and Linux::Inotify2::Watch objects without losing capabilities?

Comment on Threaded Linux::Inotify2

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-07-30 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls