in reply to sharing a hash of hashes between threads
Maybe you can solve your problem by simplifying the specification ? Use Thread::Queue (it works great with "threads") to pass data between threads. On the receiving side, first shove the data into the hash and then print/process it.
This way, you also don't expose the internal representation of the processing thread to the receiving thread, thus keeping the interface cleaner and more flexible.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sharing a hash of hashes between threads
by coontie (Sexton) on Jun 22, 2005 at 13:39 UTC |