Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: PERL issues a "lock can only be used on shared values" when locking a shared hash

by sundialsvc4 (Abbot)
on Apr 25, 2013 at 22:33 UTC ( #1030743=note: print w/ replies, xml ) Need Help??


in reply to PERL issues a "lock can only be used on shared values" when locking a shared hash

Now, here is a pure-curiosity question ... since I try to avoid perlguts as much as possible.   What is the entity that lock actually locks?   Is it an item of data, or is it a symbol-table entry?   If you have two variables referring to the same piece of data, say, and lock one of them, what is actually going to be seen as locked or not?


Comment on Re: PERL issues a "lock can only be used on shared values" when locking a shared hash
Replies are listed 'Best First'.
Re^2: PERL issues a "lock can only be used on shared values" when locking a shared hash
by bulk88 (Priest) on Apr 26, 2013 at 02:49 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2015-07-31 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls