Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^10: is ||= threadsafe? (threads != iThreads, "locking")

by tye (Sage)
on Oct 25, 2010 at 13:54 UTC ( #867238=note: print w/ replies, xml ) Need Help??

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

Yes, none of those things are "thread safe". All of them are "iThread safe". And "Perl protects its internals with internal locking" isn't very accurate. Perl protects its internals by making full copies of its internals (the interpreter state and all data) -- emulating fork but less efficiently.

The major thing related to iThreads that Perl protects with locking is the hidden "real value" of a threads::shared variable.

- tye        

Comment on Re^10: is ||= threadsafe? (threads != iThreads, "locking")

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-12-01 09:06 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (797 votes), past polls