in reply to Tk and Threads (again)
To expose the $mw object to the child threads, you'll need to create a proxy object (possibly as a threads::shared object) to wrap the Thread::Queue::Any back to the Tk "zone". You'll probably need to use AUTOLOAD within the proxy, as enumerating the entire set of calls possible on $mw is pretty difficult.
I'll offer Thread::Apartment::Client as an implementation of the concept.
However, Tk presents an add'l sticky issue: its a heavy user of closures, and passing closures between threads is not possible (and the closure should probably always run in its originating thread anyway). I hope to provide a solution to this in Thread::Apartment via proxied closures.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk and Threads (again)
by Ace128 (Hermit) on Jan 22, 2006 at 18:30 UTC | |
by renodino (Curate) on Jan 22, 2006 at 22:54 UTC | |
by Ace128 (Hermit) on Jan 23, 2006 at 22:48 UTC |