Sha256: 8df5fbc0fc91f4b01ecf4ecc79dde85ef317fc693c2b2142c2dbb2fd0b66c02d

Contents?: true

Size: 1.07 KB

Versions: 42

Compression:

Stored size: 1.07 KB

Contents

require 'concurrent/synchronization'
require 'concurrent/utility/engine'
require 'concurrent/atomic_reference/concurrent_update_error'
require 'concurrent/atomic_reference/mutex_atomic'

begin
  # force fallback impl with FORCE_ATOMIC_FALLBACK=1
  if /[^0fF]/ =~ ENV['FORCE_ATOMIC_FALLBACK']
    ruby_engine = 'mutex_atomic'
  else
    ruby_engine = Concurrent.ruby_engine
  end

  require "concurrent/atomic_reference/#{ruby_engine}"
rescue LoadError
  #warn 'Compiled extensions not installed, pure Ruby Atomic will be used.'
end

if defined? Concurrent::JavaAtomicReference

  # @!macro atomic_reference
  class Concurrent::AtomicReference < Concurrent::JavaAtomicReference
  end

elsif defined? Concurrent::RbxAtomicReference

  # @!macro atomic_reference
  class Concurrent::AtomicReference < Concurrent::RbxAtomicReference
  end

elsif defined? Concurrent::CAtomicReference

  # @!macro atomic_reference
  class Concurrent::AtomicReference < Concurrent::CAtomicReference
  end

else

  # @!macro atomic_reference
  class Concurrent::AtomicReference < Concurrent::MutexAtomicReference
  end
end

Version data entries

42 entries across 40 versions & 15 rubygems

Version Path
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
abaci-0.3.0 vendor/bundle/gems/concurrent-ruby-1.0.2/lib/concurrent/atomic/atomic_reference.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/concurrent-ruby-1.0.0-java/lib/concurrent/atomic/atomic_reference.rb
concurrent-ruby-1.0.3-java lib/concurrent/atomic/atomic_reference.rb
concurrent-ruby-1.0.3 lib/concurrent/atomic/atomic_reference.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/concurrent-ruby-1.0.2/lib/concurrent/atomic/atomic_reference.rb
tdiary-5.0.2 vendor/bundle/gems/concurrent-ruby-1.0.2/lib/concurrent/atomic/atomic_reference.rb