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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.