Sha256: 44739a1b10a05f699bf9c3b3bedba56d2e29a1694e68619795d1473af1110023

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

require 'thread_safe/version'

if defined?(JRUBY_VERSION)
  require 'jruby/synchronized'
  
  module ThreadSafe
    class Array < ::Array
      include JRuby::Synchronized
    end
  
    class Hash < ::Hash
      include JRuby::Synchronized
    end
  end
else
  module ThreadSafe
    Array = ::Array
    Hash = ::Hash
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thread_safe-0.0.2 lib/thread_safe.rb
thread_safe-0.0.1 lib/thread_safe.rb