Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/18/15 13:55:01 (8 years ago)
Author:
mkommend
Message:

#2442: Adapted locking in the symbolic expression trees interpreters when incrementing the evaluated solutions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeLinearInterpreter.cs

    r13248 r13251  
    123123    #endregion
    124124
     125    private readonly object syncRoot = new object();
    125126    public IEnumerable<double> GetSymbolicExpressionTreeValues(ISymbolicExpressionTree tree, IDataset dataset, IEnumerable<int> rows) {
    126127      if (CheckExpressionsWithIntervalArithmetic)
    127128        throw new NotSupportedException("Interval arithmetic is not yet supported in the symbolic data analysis interpreter.");
    128129
    129       lock (EvaluatedSolutionsParameter.Value) {
     130      lock (syncRoot) {
    130131        EvaluatedSolutions++; // increment the evaluated solutions counter
    131132      }
Note: See TracChangeset for help on using the changeset viewer.