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 (Patriarch) 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