djs has asked for the wisdom of the Perl Monks concerning the following question:
Hello.
I would desperately like to be able to share objects
between threads. Currently I am attempting to use
Threads::Queue::Any.
$queue = Threads::Queue::Any->new; $object = MyClass->new; $queue->enqueue(\$object);
This throws an error Can't store CODE items at blib/lib/Storable.pm
Please help me. This is very annoying.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sharing objects in ithreads
by xdg (Monsignor) on Jan 24, 2006 at 03:14 UTC |