in reply to Re: Share symbol table between threads
in thread Share symbol table between threads
Someone (I think renodino), has mentioned that he has (or is working on) a module that allows you to share objects across threads.
Yes. See Thread::Apartment. I have successfully used it for a number of projects, including HTTP::Daemon::Threaded, and Tk::Threaded (tho the latter has some issues w/ tie()'d variables that keep me from CPANing it yet). I've also used the same general concepts for DBIx::Threaded, tho it needs to be updated to migrate to Thread::Apartment...or actually, a variant of Thread::Apartment I hope to build atop Thread::Sociable once its completed.
Caveat: This isn't truly "sharing", but rather "proxying", ala Microsoft's COM model.
|
|---|