Sha256: 9b5b832ce6fa862d39f8376e6ead2753d492a2eac8f6cb96dbab47a1b7fc4a45

Contents?: true

Size: 1.94 KB

Versions: 54

Compression:

Stored size: 1.94 KB

Contents

# @!macro [new] atomic_reference
#
#   An object reference that may be updated atomically. All read and write
#   operations have java volatile semantic.
#
#   @!macro thread_safe_variable_comparison
#
#   @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html
#   @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/package-summary.html
#
#   @!method initialize
#     @!macro [new] atomic_reference_method_initialize
#       @param [Object] value The initial value.
#
#   @!method get
#     @!macro [new] atomic_reference_method_get
#       Gets the current value.
#       @return [Object] the current value
#
#   @!method set
#     @!macro [new] atomic_reference_method_set
#       Sets to the given value.
#       @param [Object] new_value the new value
#       @return [Object] the new value
#
#   @!method get_and_set
#     @!macro [new] atomic_reference_method_get_and_set
#       Atomically sets to the given value and returns the old value.
#       @param [Object] new_value the new value
#       @return [Object] the old value
#
#   @!method compare_and_set
#     @!macro [new] atomic_reference_method_compare_and_set
#
#       Atomically sets the value to the given updated value if
#       the current value == the expected value.
#
#       @param [Object] old_value the expected value
#       @param [Object] new_value the new value
#
#       @return [Boolean] `true` if successful. A `false` return indicates
#       that the actual value was not equal to the expected value.

require 'concurrent/atomic/atomic_reference'
require 'concurrent/atomic/atomic_boolean'
require 'concurrent/atomic/atomic_fixnum'
require 'concurrent/atomic/cyclic_barrier'
require 'concurrent/atomic/count_down_latch'
require 'concurrent/atomic/event'
require 'concurrent/atomic/read_write_lock'
require 'concurrent/atomic/reentrant_read_write_lock'
require 'concurrent/atomic/semaphore'
require 'concurrent/atomic/thread_local_var'

Version data entries

54 entries across 50 versions & 13 rubygems

Version Path
tdiary-5.0.11 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
sprokovuln-0.2.0 vendor/ruby/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.5-java/lib/concurrent/atomics.rb
tdiary-5.0.9 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
monero_wallet_gen-0.1.0 vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
tdiary-5.0.8 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
tdiary-5.0.7 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
tdiary-5.0.6 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.5-java/lib/concurrent/atomics.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.5-java/lib/concurrent/atomics.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.5-java/lib/concurrent/atomics.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
tdiary-5.0.5 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
lazy_record-0.2.1 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
lazy_record-0.2.0 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb
lazy_record-0.1.9 vendor/bundle/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb