Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2665 LexicaseSelector, Performance improvements, UI Fixes, Debugger only shows used stacks, fixed Debugger stepping, Added vector expressions, ERCOptions,

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      Reset();
18      pool.Free(this);
19    }
20  }
21}
Note: See TracBrowser for help on using the repository browser.