Example #1
0
        public void BackIntoPool(PipeProcessor pipeProcessor)
        {
            lock (lk4Swap)
            {
                this.busyPipeProcessors.Remove(pipeProcessor);

                this.idlePipeProcessors.Add(pipeProcessor);
            }
        }
Example #2
0
        public void PrepareIdlePipeProcessors()
        {
            for (var i = 0; i < this.pipeProcessorCount; i++)
            {
                var pipe = new PipeProcessor(this);

                this.idlePipeProcessors.Add(pipe);
            }
        }