Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-11-13 07:26 GMT
Find Nodes?
    Voting Booth?
    My code is most likely broken because:

    Results (151 votes). Check out past polls.