From: nobu.nokada@... Date: 2005-02-27T18:52:23+09:00 Subject: Re: assignments and thread safety Hi, At Sun, 27 Feb 2005 17:43:47 +0900, Yohanes Santoso wrote in [ruby-talk:132474]: > > Is "$a ||= 1" thread safe? I'd guess so, as "||=" is one piece of > > It is not guaranteed to be thread-safe, although in current official > ruby vm it is 'atomic'. It is impossilbe. What do you expect for: $a ||= very.long.operation? -- Nobu Nakada