asdfgroup has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Does anybody know, is this safe to use pthread code in XS modules with perl, builded without pthread support ?

for example if I make interface to libmysql, can I use threads in it ? Is this possible any strange effects ? Any bugs ( features ? )

Sincerely yours, Nikita Savin.
  • Comment on Is it safe to use pthread code in XS modules built without pthread?

Replies are listed 'Best First'.
Re: Is it safe to use pthread code in XS modules built without pthread?
by saintmike (Vicar) on Apr 19, 2004 at 21:16 UTC
    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.