Create a gist now

Instantly share code, notes, and snippets.

Mutex#synchronize block params oddity in 2.0
require 'thread' do |*args|
p RUBY_VERSION => args
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
$ ruby mutex.rb
$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]
$ ruby mutex.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment