Sep 11, 2012, 8:55 AM
Post #1 of 2
How to use threads in perl module with handler in 'external' module
Before I will ask my question I have to explain a bit logic of my module. I have got 2 modules :
Smaller one (let's call it A) where I have method add_stuff and bigger (let's name it B). A logic of module B is a bit complicated. There is a lot of methods etc...in a few places this module calls method add_stuff from module A. Generally, it happens more or less 1 million times.
Now, I would like to add threads into my module A. I do not want to change module B. Is it possible? I am looking for something like handler for method add_stuff.
Could you give me any solution?
Thanks in advance