Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: getting shared_clone() functionality with earlier threads::shared?

by DrWhy (Chaplain)
on Nov 10, 2010 at 17:11 UTC ( [id://870626]=note: print w/replies, xml ) Need Help??


in reply to Re: getting shared_clone() functionality with earlier threads::shared?
in thread getting shared_clone() functionality with earlier threads::shared?

That's an interesting idea. I hadn't looked at the code for the more recent threads::shared and didn't realize shared_clone was implemented in pure perl -- I assumed it was in .xs like the rest of the module's code.

Actually, I now think I can solve my problem better using Data::Alias. But I'll have to test to see if this aliasing plays well with shared variables.

UPDATE: fixed typo.

--DrWhy

"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

  • Comment on Re^2: getting shared_clone() functionality with earlier threads::shared?

Replies are listed 'Best First'.
Re^3: getting shared_clone() functionality with earlier threads::shared?
by BrowserUk (Patriarch) on Nov 10, 2010 at 22:42 UTC
    Actually, I now think I can solve my problem better using Data::Alias. But I'll have to test to see if this aliasing plays well with shared variables.

    That too is an interesting idea. It's not something I've ever thought to try. My gut feel says it's not going to work, but please be sure to come back and tell us how you get on.


    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.
      Don't know when I'll get to this, but I'll leave up this link to this comment in my chatterbox as a reminder.

      --DrWhy

      "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2025-03-16 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (54 votes). Check out past polls.