Sha256: b60322ec729f75957ff1295078c779e0930ebac5274ecc241facc6c1909594a8

Contents?: true

Size: 310 Bytes

Versions: 10

Compression:

Stored size: 310 Bytes

Contents

module ThreadSafe
  module Util
    # An overhead-less atomic reference.
    AtomicReference =
      if defined?(Rubinius::AtomicReference)
        Rubinius::AtomicReference
      else
        require 'atomic'
        defined?(Atomic::InternalReference) ? Atomic::InternalReference : Atomic
      end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
thread_safe-0.1.3 lib/thread_safe/util/atomic_reference.rb
thread_safe-0.1.3-java lib/thread_safe/util/atomic_reference.rb
thread_safe-ianunruh-0.1.1 lib/thread_safe/util/atomic_reference.rb
thread_safe-ianunruh-0.1.1-java lib/thread_safe/util/atomic_reference.rb
thread_safe-0.1.2 lib/thread_safe/util/atomic_reference.rb
thread_safe-0.1.2-java lib/thread_safe/util/atomic_reference.rb
thread_safe-0.1.1 lib/thread_safe/util/atomic_reference.rb
thread_safe-0.1.1-java lib/thread_safe/util/atomic_reference.rb
challah-1.0.0 vendor/bundle/gems/thread_safe-0.1.0/lib/thread_safe/util/atomic_reference.rb
thread_safe-0.1.0 lib/thread_safe/util/atomic_reference.rb