From: "Iñaki Baz Castillo" Date: 2012-06-12T01:05:12+09:00 Subject: Re: Is "a,b=c,d" atomic? or do I need a Mutex? 2012/6/11 Tony Arcieri : > On Mon, Jun 11, 2012 at 1:00 AM, Iñaki Baz Castillo wrote: >> >> I do agree that, while in Ruby land, I should use a mutex (not >> required right now since Array#<< and a,b=c,d are atomic > > > Note that Array#<< isn't atomic, it's just that the GIL prevents contention > between threads so it never becomes a problem (until you try to use a Ruby > implementation without a GIL) Well, since I'm coding a C extension for Ruby 1.9 MRI, I assume I can rely on the GVL :) -- Iñaki Baz Castillo