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 1
1
module Concurrent
2
2
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
4
12
class AtomicMarkableReference < ::Concurrent ::Synchronization ::Object
13
+
5
14
# @!macro [attach] atomic_markable_reference_method_initialize
6
15
def initialize ( value = nil , mark = false )
7
16
super ( )
@@ -16,9 +25,9 @@ def initialize(value = nil, mark = false)
16
25
# - the current value == the expected value &&
17
26
# - the current mark == the expected mark
18
27
#
19
- # @param [Object] old_val the expected value
28
+ # @param [Object] expected_val the expected value
20
29
# @param [Object] new_val the new value
21
- # @param [Boolean] old_mark the expected mark
30
+ # @param [Boolean] expected_mark the expected mark
22
31
# @param [Boolean] new_mark the new mark
23
32
#
24
33
# @return [Boolean] `true` if successful. A `false` return indicates
You can’t perform that action at this time.
0 commit comments