more useful options | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Then your simplest, best (and probably only) solution would be to switch the notify and processing threads around. That is, put the event processing into the worker thread and run the Inotify in the main thread. That makes more sense anyway as the Inotify only has to queue the events, but if the event are occurring rapidly, a single processing thread might not be able to keep up. By placing the processing in a worker thread, you can start 2 or 3 or as many as are needed. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re^3: Interrupting a blocking read (Linux::Inotify2) with a signal handler within a thread
by BrowserUk
|
|