Hello, I need to do the following:
From a mother perl interpreter, I wish to register a Perl handler and call a C function, which starts a number of threads, each of which should be able to call the perl handler with a parameter. Before a thread calls the handler, I like to clone the mother interpreter to avoid stack confusion. The attached code is an example of how I thought this should be done in XS. I register the perl handler in thread_test.pl with TestThreads::set_handler (\&handler); and start the threads with TestThreads::execute(); My problem is that I'm not able to pass the integer value to the handler, which claims that it gets an uninitialized value. Does somebody have any idea what the problem is? Best regards, --Anders --------------------------------------------------- Anders Sønderberg Mortensen <[EMAIL PROTECTED]> Indexdata <http://www.indexdata.dk/> Phone: +45 3341 0105, Fax: +45 3341 0101 ---------------------------------------------------
TestThreads-0.01.tar.gz
Description: Binary data