Lines Matching refs:reference

39  * An {@code AtomicMarkableReference} maintains an object reference
44 * [reference, boolean] pairs.
48 * @param <V> The type of object referred to by this reference
53 final T reference;
55 private Pair(T reference, boolean mark) {
56 this.reference = reference;
59 static <T> Pair<T> of(T reference, boolean mark) {
60 return new Pair<T>(reference, mark);
70 * @param initialRef the initial reference
78 * Returns the current value of the reference.
80 * @return the current value of the reference
83 return pair.reference;
96 * Returns the current values of both the reference and the mark.
101 * @return the current value of the reference
106 return pair.reference;
110 * Atomically sets the value of both the reference and mark
112 * current reference is {@code ==} to the expected reference
119 * @param expectedReference the expected value of the reference
120 * @param newReference the new value for the reference
134 * Atomically sets the value of both the reference and mark
136 * current reference is {@code ==} to the expected reference
139 * @param expectedReference the expected value of the reference
140 * @param newReference the new value for the reference
151 expectedReference == current.reference &&
153 ((newReference == current.reference &&
159 * Unconditionally sets the value of both the reference and mark.
161 * @param newReference the new value for the reference
166 if (newReference != current.reference || newMark != current.mark)
172 * if the current reference is {@code ==} to the expected
173 * reference. Any given invocation of this operation may fail
179 * @param expectedReference the expected value of the reference
186 expectedReference == current.reference &&