Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/PooledPushInterpreter.cs @ 15032

Last change on this file since 15032 was 15032, checked in by pkimmesw, 7 years ago

#2665 Fixed bias 0 issue, PushExpressionFrequencyAnalyzer, Fixed probability for ERC settings, Fixed enable/disable instructions, Added expression descriptions

File size: 637 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Interpreter {
2
3  using HeuristicLab.Core;
4  using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
5
6  public class PooledPushInterpreter : PushInterpreter {
7
8    private readonly PushInterpreterPool pool;
9
10    public PooledPushInterpreter(PushInterpreterPool pool, IReadOnlyPushConfiguration config, InterpreterPoolContainer poolContainer, IRandom random = null)
11      : base(config, random, poolContainer) {
12      this.pool = pool;
13    }
14
15    public override void Dispose() {
16      base.Dispose();
17      Clear();
18      pool.Free(this);
19    }
20  }
21}
Note: See TracBrowser for help on using the repository browser.