Added sync to compute method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422321 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a77fde3cd
commit
7d61c9ada9
|
@ -930,7 +930,7 @@ public class ResizableDoubleArray implements DoubleArray, Serializable {
|
|||
* @return the result.
|
||||
* @since 3.1
|
||||
*/
|
||||
public double compute(MathArrays.Function f) {
|
||||
public synchronized double compute(MathArrays.Function f) {
|
||||
return f.evaluate(internalArray, startIndex, numElements);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue