Matthew J Backes wrote: [...]
I'm not clear about the limits of the multiplicity system; is it possible to give each thread it's own instance of an interpreter?
Does a call to PERL_SET_CONTEXT affect other threads or interpreters, or is it entirely thread-local, provided no other threads mess with the interpreter(s) involved?
perlembed indicates building perl with -Dusethreads and -Duseithreads may be more appropriate for this arrangement.
I'm somewhat confused about HAVE_WIN32_ASPERL... it looks like what I'd expect from an autoconf system checking for options in perl -V, but if I run find -type f |xargs grep ASPERL on the openldap tree, the only usage of it seems to be the #ifdefs in servers/slapd/back-perl/...
Was it part of the autoconf tests at one point, and should it be again?
Do a 'perl -V' and check what defines perl was built with.
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
#ifdef HAVE_WIN32_ASPERL /* pTHX is needed often now */
# define PERL_INTERPRETER my_perl
...
Looks like the backend wants to call the interpreter different things for different versions. If we make the same changes for checking MULTIPLICITY this should work fine.
Thank you, I'll see what I can do.
Good luck.
Matthew Backes lucca@csun.edu
--Kervin