Excerpts from the mail message of Neil Gower:
)
) I'm trying to embed a persistent Perl interpreter into a
) multithreaded C++ program. I took a crack at one interpreter
) per thread (as per perlembed), but couldn't get it to run (did
) get it to compile mind you). In the spirit of TMTOWTDI, I am
) trying a "simpler" alternative, sharing a persistent interpreter
) across multiple threads, like so:
[...]
) This is all going on with "Perl v5.6.0 built for MSWin32-x86-multi-thread"
) (built from source, from perl.org, not Activstate) on Windows NT 4.
Build Perl without thread support and I bet your problems will go
away. If you include thread support then things get put into
thread-local storage and then can't be accessed when you change
threads. (But I'm just guessing.)
--
Tye McQueen Nothing is obvious unless you are overlooking something
http://www.metronet.com/~tye/ (scripts, links, nothing fancy)