- Timestamp:
- 11/18/15 12:00:10 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.GrammaticalEvolution/3.4/ArtificialAnt/GEArtificialAntProblem.cs
r13238 r13243 22 22 #endregion 23 23 24 using System.Diagnostics.Contracts;25 24 using System.Linq; 26 25 using HeuristicLab.Common; … … 99 98 } 100 99 100 private readonly object syncRoot = new object(); 101 101 public override double Evaluate(Individual individual, IRandom random) { 102 102 var vector = individual.IntegerVector(); … … 110 110 // However, results depend on the order of execution. Therefore, results might be different for the same seed when using the parallel engine. 111 111 IRandom fastRand; 112 lock ( random) {112 lock (syncRoot) { 113 113 fastRand = new FastRandom(random.Next()); 114 114 }
Note: See TracChangeset
for help on using the changeset viewer.