Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: is ||= threadsafe?

by BrowserUk (Pope)
on Oct 25, 2010 at 18:45 UTC ( #867321=note: print w/replies, xml ) Need Help??


in reply to Re^5: is ||= threadsafe?
in thread is ||= threadsafe?

As I understood things, tye and you said Perl did the locking for the programmer when it came to the state of the SV. . Now you're saying I need to take locks myself.

Now who being ... What was that word you called me?

Perl takes care of protecting any internal changes.

Ie. refcounts; flags; SV upgrades; UTF upgrades; anything that is not (normally) changed directly by the programmer.

Eg, all 3 things you cited in your original post and many more.

The programmer is responsible for locking the variable itself.


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.

Replies are listed 'Best First'.
Re^7: is ||= threadsafe?
by ikegami (Pope) on Oct 25, 2010 at 21:59 UTC

    Now who being ... What was that word you called me?

    If I don't get it, then I can't possibly be playing dumb.

      If I don't get it, then I can't possibly be playing dumb.

      {Sigh} Ditto when the "one" you "wasted enough time with" doesn't exist. (Can we can the you said/I said stuff please?)


      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://867321]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2018-05-28 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?