Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/PooledPushInterpreter.cs @ 17021

Last change on this file since 17021 was 15771, checked in by bburlacu, 7 years ago

#2895: Add solution skeleton for PushGP with genealogy analysis.

File size: 551 bytes
RevLine 
[15771]1using HeuristicLab.Core;
2
3namespace HeuristicLab.Problems.ProgramSynthesis {
[14834]4  public class PooledPushInterpreter : PushInterpreter {
[14744]5
6    private readonly PushInterpreterPool pool;
7
[14777]8    public PooledPushInterpreter(PushInterpreterPool pool, IReadOnlyPushConfiguration config, InterpreterPoolContainer poolContainer, IRandom random = null)
9      : base(config, random, poolContainer) {
[14744]10      this.pool = pool;
11    }
12
[14834]13    public override void Dispose() {
14      base.Dispose();
[15273]15      ClearStacks();
[14834]16      pool.Free(this);
[14744]17    }
18  }
19}
Note: See TracBrowser for help on using the repository browser.