Skip to content

@splattael /mutex.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Mutex#synchronize block params oddity in 2.0
require 'thread'
Mutex.new.synchronize do |*args|
p RUBY_VERSION => args
end
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
$ ruby mutex.rb
{"1.9.3"=>[]}
$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]
$ ruby mutex.rb
{"2.0.0"=>[nil]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.