Sha256: 172cbaf00ae3700404d3c929eea728e08564b8180b7890f1f41d28128326f05f

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 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

4 entries across 4 versions & 1 rubygems

Version Path
thread_safe-0.3.1 lib/thread_safe/util/atomic_reference.rb
thread_safe-0.3.1-java lib/thread_safe/util/atomic_reference.rb
thread_safe-0.2.0-java lib/thread_safe/util/atomic_reference.rb
thread_safe-0.2.0 lib/thread_safe/util/atomic_reference.rb