Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Tk with threadsby renodino (Curate) |
on May 12, 2008 at 14:09 UTC ( [id://686083]=note: print w/replies, xml ) | Need Help?? |
Creating new threads inside dispatched closures from within Tk's internals
is probably a very bad idea. Frankly, spawning a thread from *any* closure
is probably a bad idea (threads already have a enough issues with non-determinism).
I'd recommend creating a Thread::Queue, then creating a thread (or pool of threads) and using your Button dispatch to forward command/control msgs to the threads. Perl Contrarian & SQL fanboy
In Section
Seekers of Perl Wisdom
|
|