Sha256: 8c6675f44d56c6a919a5132b295ae6a745ba3c2de5adc9dbeb205815568dc2d7

Contents?: true

Size: 915 Bytes

Versions: 21

Compression:

Stored size: 915 Bytes

Contents

require_relative '../../extension_helper'

if Concurrent.allow_c_extensions?
  begin
    require 'concurrent_ruby_ext'
  rescue LoadError
    # may be a Windows cross-compiled native gem
    require "#{RUBY_VERSION[0..2]}/concurrent_ruby_ext"
  end
end

require 'concurrent/atomic_reference/direct_update'
require 'concurrent/atomic_reference/numeric_cas_wrapper'

module Concurrent

  # @!macro atomic_reference
  class CAtomic
    include Concurrent::AtomicDirectUpdate
    include Concurrent::AtomicNumericCompareAndSetWrapper

    # @!method initialize
    #   @!macro atomic_reference_method_initialize

    # @!method get
    #   @!macro atomic_reference_method_get

    # @!method set
    #   @!macro atomic_reference_method_set

    # @!method get_and_set
    #   @!macro atomic_reference_method_get_and_set

    # @!method _compare_and_set
    #   @!macro atomic_reference_method_compare_and_set
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
concurrent-ruby-0.7.2 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.2-x86_64-linux lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.2-x86-solaris-2.11 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.2-x86-mingw32 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.2-x86-linux lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.2-x64-mingw32 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.2-java lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.1 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.1-x86_64-linux lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.1-x86-solaris-2.11 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.1-x86-mingw32 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.1-x86-linux lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.1-x64-mingw32 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.1-java lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.0 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.0-x86_64-linux lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.0-x86-solaris-2.11 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.0-x86-mingw32 lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.0-x86-linux lib/concurrent/atomic_reference/ruby.rb
concurrent-ruby-0.7.0-x64-mingw32 lib/concurrent/atomic_reference/ruby.rb