File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 11module Concurrent
22 module Edge
3- # @!macro atomic_markable_reference
3+
4+ # @!macro [attach] atomic_markable_reference
5+ #
6+ # An atomic reference which maintains an object reference along with a mark bit
7+ # that can be updated atomically.
8+ #
9+ # @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicMarkableReference.html java.util.concurrent.atomic.AtomicMarkableReference
10+ #
11+ # @api Edge
412 class AtomicMarkableReference < ::Concurrent ::Synchronization ::Object
13+
514 # @!macro [attach] atomic_markable_reference_method_initialize
615 def initialize ( value = nil , mark = false )
716 super ( )
@@ -16,9 +25,9 @@ def initialize(value = nil, mark = false)
1625 # - the current value == the expected value &&
1726 # - the current mark == the expected mark
1827 #
19- # @param [Object] old_val the expected value
28+ # @param [Object] expected_val the expected value
2029 # @param [Object] new_val the new value
21- # @param [Boolean] old_mark the expected mark
30+ # @param [Boolean] expected_mark the expected mark
2231 # @param [Boolean] new_mark the new mark
2332 #
2433 # @return [Boolean] `true` if successful. A `false` return indicates
You can’t perform that action at this time.
0 commit comments