Holds all parameters for MapRenderer program, and sets some defaults.
Beispiel #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;
 }
Beispiel #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;
 }