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:
Phil Steitz 2012-12-15 19:24:04 +00:00
parent 1a77fde3cd
commit 7d61c9ada9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}