Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: XS replacing my c library, not compatible with OS threads

by CardinalNumber (Prior)
on Nov 30, 2010 at 21:17 UTC ( #874574=note: print w/ replies, xml ) Need Help??


in reply to XS replacing my c library, not compatible with OS threads

Yep. The default behavior is great for core perl development but can be a major headache for green XS and embedding authors.

The 'secret' is to #define NO_XSLOCKS before including XSUB.h. If left undefined, XSUB.h will redefine a long list of functions/macros (including free, malloc, and exit) with internal versions.


Comment on Re: XS replacing my c library, not compatible with OS threads
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://874574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-12-20 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls