Top Level Namespace
Defined Under Namespace
Modules: Concurrent
Instance Method Summary collapse
-
#compare_and_set ⇒ Boolean
Atomically sets the value to the given updated value if the current value == the expected value.
-
#get ⇒ Object
Gets the current value.
-
#get_and_set ⇒ Object
Atomically sets to the given value and returns the old value.
- #initialize ⇒ Object
-
#set ⇒ Object
Sets to the given value.
Instance Method Details
#compare_and_set ⇒ Boolean
Atomically sets the value to the given updated value if the current value == the expected value.
that the actual value was not equal to the expected value.
44 |
# File 'lib/concurrent/atomics.rb', line 44 require 'concurrent/atomic/atomic_reference' |
#get ⇒ Object
Gets the current value.
44 |
# File 'lib/concurrent/atomics.rb', line 44 require 'concurrent/atomic/atomic_reference' |
#get_and_set ⇒ Object
Atomically sets to the given value and returns the old value.
44 |
# File 'lib/concurrent/atomics.rb', line 44 require 'concurrent/atomic/atomic_reference' |
#initialize ⇒ Object
44 |
# File 'lib/concurrent/atomics.rb', line 44 require 'concurrent/atomic/atomic_reference' |
#set ⇒ Object
Sets to the given value.
44 |
# File 'lib/concurrent/atomics.rb', line 44 require 'concurrent/atomic/atomic_reference' |