- Timestamp:
- 11/18/15 13:55:01 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionCompiledTreeInterpreter.cs
r13248 r13251 117 117 public void ClearState() { } 118 118 119 private readonly object syncRoot = new object(); 119 120 public IEnumerable<double> GetSymbolicExpressionTreeValues(ISymbolicExpressionTree tree, IDataset dataset, IEnumerable<int> rows) { 120 121 if (CheckExpressionsWithIntervalArithmetic) 121 122 throw new NotSupportedException("Interval arithmetic is not yet supported in the symbolic data analysis interpreter."); 122 123 123 lock ( EvaluatedSolutionsParameter.Value) {124 lock (syncRoot) { 124 125 EvaluatedSolutions++; // increment the evaluated solutions counter 125 126 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeILEmittingInterpreter.cs
r13248 r13251 150 150 #endregion 151 151 152 private readonly object syncRoot = new object(); 152 153 public IEnumerable<double> GetSymbolicExpressionTreeValues(ISymbolicExpressionTree tree, IDataset dataset, IEnumerable<int> rows) { 153 154 if (CheckExpressionsWithIntervalArithmetic) 154 155 throw new NotSupportedException("Interval arithmetic is not yet supported in the symbolic data analysis interpreter."); 155 156 156 EvaluatedSolutions++; // increment the evaluated solutions counter 157 lock (syncRoot) { 158 EvaluatedSolutions++; // increment the evaluated solutions counter 159 } 157 160 var state = PrepareInterpreterState(tree, dataset); 158 161 -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs
r13248 r13251 72 72 73 73 protected SymbolicDataAnalysisExpressionTreeInterpreter(SymbolicDataAnalysisExpressionTreeInterpreter original, 74 Cloner cloner) : base(original, cloner) { } 74 Cloner cloner) 75 : base(original, cloner) { } 75 76 76 77 public override IDeepCloneable Clone(Cloner cloner) { … … 116 117 #endregion 117 118 119 private readonly object syncRoot = new object(); 118 120 public IEnumerable<double> GetSymbolicExpressionTreeValues(ISymbolicExpressionTree tree, IDataset dataset, 119 121 IEnumerable<int> rows) { … … 122 124 } 123 125 124 lock ( EvaluatedSolutionsParameter.Value) {126 lock (syncRoot) { 125 127 EvaluatedSolutions++; // increment the evaluated solutions counter 126 128 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeLinearInterpreter.cs
r13248 r13251 123 123 #endregion 124 124 125 private readonly object syncRoot = new object(); 125 126 public IEnumerable<double> GetSymbolicExpressionTreeValues(ISymbolicExpressionTree tree, IDataset dataset, IEnumerable<int> rows) { 126 127 if (CheckExpressionsWithIntervalArithmetic) 127 128 throw new NotSupportedException("Interval arithmetic is not yet supported in the symbolic data analysis interpreter."); 128 129 129 lock ( EvaluatedSolutionsParameter.Value) {130 lock (syncRoot) { 130 131 EvaluatedSolutions++; // increment the evaluated solutions counter 131 132 }
Note: See TracChangeset
for help on using the changeset viewer.