public RenderWorker( BlockingQueue<RenderTask> inputQueue, BlockingQueue<RenderTask> outputQueue, MapRendererParams taskParams ) { inQueue = inputQueue; outQueue = outputQueue; threadCount++; threadNumber = threadCount; thread = new Thread( RenderLoop ) { IsBackground = true, Name = "RenderWorker" + threadNumber }; p = taskParams; }
public RenderWorker(BlockingQueue <RenderTask> inputQueue, BlockingQueue <RenderTask> outputQueue, MapRendererParams taskParams) { inQueue = inputQueue; outQueue = outputQueue; threadCount++; threadNumber = threadCount; thread = new Thread(RenderLoop) { IsBackground = true, Name = "RenderWorker" + threadNumber }; p = taskParams; }