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/SymbolicDataAnalysisExpressionCompiledTreeInterpreter.cs

    r13248 r13251  
    117117    public void ClearState() { }
    118118
     119    private readonly object syncRoot = new object();
    119120    public IEnumerable<double> GetSymbolicExpressionTreeValues(ISymbolicExpressionTree tree, IDataset dataset, IEnumerable<int> rows) {
    120121      if (CheckExpressionsWithIntervalArithmetic)
    121122        throw new NotSupportedException("Interval arithmetic is not yet supported in the symbolic data analysis interpreter.");
    122123
    123       lock (EvaluatedSolutionsParameter.Value) {
     124      lock (syncRoot) {
    124125        EvaluatedSolutions++; // increment the evaluated solutions counter
    125126      }
Note: See TracChangeset for help on using the changeset viewer.