As far as I know, Support for PerlThreads is minimal, since they don't work all too well. See my explanation
here. Anyway, I doubt ANY perl modules are threadsafe since 1) none of them say anything about it and 2) people have seemed to have given up on PerlThreads :-( The only exception I can think of is perlxs modules which link to threadsafe C libs- OK there. Remember, a lib is only threadsafe if it explicitly says so. If you desperately need threads, I offer a pseudo solution in the link above. You have some options to make libraries threadsafe
- Go through all the code and lock global variables
- Go through the code and nuke globals replacing them with refs in passed args to vars in the calling function (a more C-ish solution and one recommended by the POSIX standard)
- Allow only one thread at a time to access the library (mutex fr the whole library)
Keep in mind that Perl muteces are far from bulletproof and it is likely that you'll come across some potholes in the threads if you do anything more than perform simple operations. In fact, this is a failing I'm working on right now. You did mention before wanting to compile this, so I hope perl2exe does this well (I have no idea) and I hope you know what you're doing. Good luck!
AgentM Systems nor Nasca Enterprises nor
Bone::Easy nor Macperl is responsible for the
comments made by
AgentM. Remember, you can build any logical system with NOR.