in reply to Thread::Apartment, how do I use main:: subs?
Sorry, my memory is a bit fuzzy on T::A, but iirc the current version didn't play well outside of an explicitly created object, so main:: might not be runnable in an apartment. I vaguely recall trying to hack something together to do that for an apartment threaded Tk.
Perl Contrarian & SQL fanboy
My own use of T::A has always been to use main:: as a just a launcher, and any actual processing was wrapped in objects which could be mapped to apartments.
Sorry I can't shed more light; I used T::A for a major project a couple years ago, but haven't had a reason to touch it in awhile.
Perl Contrarian & SQL fanboy
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Thread::Apartment, how do I use main:: subs?
by wilsond (Scribe) on May 12, 2009 at 05:19 UTC | |
by wilsond (Scribe) on May 20, 2009 at 00:35 UTC | |
by BrowserUk (Patriarch) on May 20, 2009 at 01:07 UTC | |
by wilsond (Scribe) on May 26, 2009 at 20:09 UTC |
In Section
Seekers of Perl Wisdom