Lines Matching defs:mark
11 * along with a mark bit, that can be updated atomically.
25 final boolean mark;
26 private Pair(T reference, boolean mark) {
28 this.mark = mark;
30 static <T> Pair<T> of(T reference, boolean mark) {
31 return new Pair<T>(reference, mark);
42 * @param initialMark the initial mark
58 * Returns the current value of the mark.
60 * @return the current value of the mark
63 return pair.mark;
67 * Returns the current values of both the reference and the mark.
71 * {@code markholder[0]} will hold the value of the mark.
76 markHolder[0] = pair.mark;
81 * Atomically sets the value of both the reference and mark
84 * and the current mark is equal to the expected mark.
92 * @param expectedMark the expected value of the mark
93 * @param newMark the new value for the mark
105 * Atomically sets the value of both the reference and mark
108 * and the current mark is equal to the expected mark.
112 * @param expectedMark the expected value of the mark
113 * @param newMark the new value for the mark
123 expectedMark == current.mark &&
125 newMark == current.mark) ||
130 * Unconditionally sets the value of both the reference and mark.
133 * @param newMark the new value for the mark
137 if (newReference != current.reference || newMark != current.mark)
142 * Atomically sets the value of the mark to the given update value
151 * @param newMark the new value for the mark
158 (newMark == current.mark ||