Last change
on this file since 15287 was
15273,
checked in by pkimmesw, 8 years ago
|
#2665 Started Plush Encoding, Added Zero Error Individual Count Analyzer
|
File size:
643 bytes
|
Rev | Line | |
---|
[14744] | 1 | namespace HeuristicLab.Problems.ProgramSynthesis.Push.Interpreter {
|
---|
| 2 |
|
---|
| 3 | using HeuristicLab.Core;
|
---|
| 4 | using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
|
---|
| 5 |
|
---|
[14834] | 6 | public class PooledPushInterpreter : PushInterpreter {
|
---|
[14744] | 7 |
|
---|
| 8 | private readonly PushInterpreterPool pool;
|
---|
| 9 |
|
---|
[14777] | 10 | public PooledPushInterpreter(PushInterpreterPool pool, IReadOnlyPushConfiguration config, InterpreterPoolContainer poolContainer, IRandom random = null)
|
---|
| 11 | : base(config, random, poolContainer) {
|
---|
[14744] | 12 | this.pool = pool;
|
---|
| 13 | }
|
---|
| 14 |
|
---|
[14834] | 15 | public override void Dispose() {
|
---|
| 16 | base.Dispose();
|
---|
[15273] | 17 | ClearStacks();
|
---|
[14834] | 18 | pool.Free(this);
|
---|
[14744] | 19 | }
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.