Copy threads.pm to a different name?
Ok, seriously, the module is available to copy and modify. Have a blast.
XY Problem
| [reply] |
I mean some mechanism not using perl "ithread", because I hate the weird sharing mechanism. It seems that it's very hard to share objects between threads.
| [reply] |
it's very hard to share objects between threads.
Could you describe the object(s) that you wish to share across threads? And why you feel the need to share them?
Please note: I'm not implying that there is never a need to do this; just asking for a description of a situation when it is necessary advantagous to do so?
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] |
If you want to use threads in Perl, you have to use Perl's threads. Threads need support at every level of the language in order to work.
But that doesn't mean you can't build upon what's provided. Despite saying you mean something else, what you want is support in sharing objects. Sorry, I can't help you with that (not having done any threaded programming in Perl), but at least you know what you want now.
| [reply] |
| [reply] |