Lines Matching refs:current
98 * Gets the current value.
100 * @return the current value
133 long current = get();
134 if (compareAndSet(current, newValue))
135 return current;
141 * if the current value {@code ==} the expected value.
154 * if the current value {@code ==} the expected value.
169 * Atomically increments by one the current value.
175 long current = get();
176 long next = current + 1;
177 if (compareAndSet(current, next))
178 return current;
183 * Atomically decrements by one the current value.
189 long current = get();
190 long next = current - 1;
191 if (compareAndSet(current, next))
192 return current;
197 * Atomically adds the given value to the current value.
204 long current = get();
205 long next = current + delta;
206 if (compareAndSet(current, next))
207 return current;
212 * Atomically increments by one the current value.
218 long current = get();
219 long next = current + 1;
220 if (compareAndSet(current, next))
226 * Atomically decrements by one the current value.
232 long current = get();
233 long next = current - 1;
234 if (compareAndSet(current, next))
240 * Atomically adds the given value to the current value.
247 long current = get();
248 long next = current + delta;
249 if (compareAndSet(current, next))
255 * Returns the String representation of the current value.
256 * @return the String representation of the current value.