Do I understand correctly that you creating new thread inside your library? If yes, then probably that's the source of the problem. When perl creates new thread it creates copy of interpreter, so every thread works with its own copy. After thread exits the memory is freed. If new thread is created in C library, the copy of the interpreter isn't created. I'm not too familiar with perl internals, but that's not good.
In reply to Re: my_perl is NULL when embed perl in C ; "dSP" segmentation faults
by zwon
in thread Working with multiple interpreters (my_perl is NULL when embed perl in C ; "dSP" segmentation faults)
by perlmonk1729
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |