Changeset 11900 for branches/ProgrammableProblem/HeuristicLab.Problems.ExternalEvaluation/3.4/Programmable
- Timestamp:
- 02/05/15 10:19:37 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.ExternalEvaluation/3.4/Programmable/SingleObjectiveOptimizationSupportScript.cs
r11893 r11900 62 62 } 63 63 64 private readonly object compileLock = new object(); 64 65 private volatile ISingleObjectiveOptimizationSupport compiledInstance; 65 66 private ISingleObjectiveOptimizationSupport CompiledInstance { 66 67 get { 67 if (compiledInstance == null) throw new InvalidOperationException("The problem definition script is not compiled and cannot be used."); 68 if (compiledInstance == null) { 69 lock (compileLock) { 70 if (compiledInstance == null) { 71 Compile(); 72 } 73 } 74 } 68 75 return compiledInstance; 69 76 }
Note: See TracChangeset
for help on using the changeset viewer.