in reply to Multi-threads newbie questions
The solution I'm afraid is "Don't use Thread::Pool or Thread::Pool::Simple". They're broken.
Anything you enqueue (using the ->add() method) gets stringified using Storable, and so by the time your threads get something, it is a frozen/thawed copy of the original. Nothing they do to it will ever be reflected back to the original. They are just horribly, horribly broken.
If you would care to describe your real application, I'd have a go a suggesting an approach to solving it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multi-threads newbie questions
by daverave (Scribe) on Sep 20, 2010 at 12:28 UTC | |
by BrowserUk (Patriarch) on Sep 20, 2010 at 12:44 UTC | |
by BrowserUk (Patriarch) on Sep 20, 2010 at 12:37 UTC | |
by daverave (Scribe) on Sep 20, 2010 at 13:00 UTC | |
by BrowserUk (Patriarch) on Sep 20, 2010 at 13:27 UTC | |
by daverave (Scribe) on Sep 20, 2010 at 14:54 UTC | |
| |
|
Re^2: Multi-threads newbie questions
by Jenda (Abbot) on Sep 21, 2010 at 12:26 UTC | |
by BrowserUk (Patriarch) on Sep 21, 2010 at 13:57 UTC |