Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: is ||= threadsafe?

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


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

Without contesting any of those in any way whatsoever, can you suggest possible scenarios in which they might cause some kind of problem?

Replies are listed 'Best First'.
Re^3: is ||= threadsafe?
by ikegami (Pope) on Oct 25, 2010 at 04:27 UTC
    segmentation fault, premature deallocation and segmentation fault (respectively) are serious problems in any scenario.
      segmentation fault, premature deallocation and segmentation fault (respectively)

      I challenge you to demonstrate any one of those.

      And when you can't, come back and I'll explain why you can't.

        Well, a refcount increase is an increment, and increment operations aren't necessarily thread safe, so a refcount increase is not necessarily thread-safe.

        Update: Fixed unintentional misquote, used clearer wording

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2018-07-20 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (429 votes). Check out past polls.

    Notices?