Does anybody know, is this safe to use pthread code in XS modules with perl, builded without pthread support ?
It's definitely not safe to use pthreaded code in XS with a perl executable that's not been built with threading enabled. I tried that a while ago and encountered hard-to-debug problems at a very low level. After I built perl with threading enabled, the problems went away.