Home | History | Annotate | Download | only in atomic

Lines Matching defs:function

39 import java.util.function.DoubleBinaryOperator;
43 * value updated using a supplied function. When updates (method
54 * <p>The supplied accumulator function should be side-effect-free,
56 * contention among threads. The function is applied with the current
82 private final DoubleBinaryOperator function;
86 * Creates a new instance using the given accumulator function
88 * @param accumulatorFunction a side-effect-free function of two arguments
89 * @param identity identity (initial value) for the accumulator function
93 this.function = accumulatorFunction;
106 (function.applyAsDouble
113 (function.applyAsDouble
116 doubleAccumulate(x, function, uncontended);
135 result = function.applyAsDouble
178 result = function.applyAsDouble(result, v);
241 * The function used for updates.
244 private final DoubleBinaryOperator function;
255 DoubleBinaryOperator function,
258 this.function = function;
271 DoubleAccumulator a = new DoubleAccumulator(function, d);
287 return new SerializationProxy(get(), function, identity);