Hello, I have some code which maintains a pool of Perl interpreters in C
and allocates an interpreter as requests come in. It works well enough,
but I have run into an issue that my embedded Perl code cannot print to
STDOUT or STDERR. I am switching contexts between interpreters fairly
often, and using PERL_NO_GET_CONTEXT and dTHX to set up the environment.
Is it correct that dTHX will set up the environment for whichever Perl
context is currently active?
In any event, as the above probably makes clear, I have no idea what is
causing the issue. I am working through it, but if this rings a bell for
anyone I would appreciate any advice greatly.
Thanks,
Jeremy