An atomic reference implementation for JRuby, Rubinius, and MRI
https://github.com/headius/ruby-atomic