Holds all parameters for MapRenderer program, and sets some defaults.
예제 #1
0
 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;
 }
예제 #2
0
 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;
 }