Beispiel #1
0
 public JobReplayProcessor(BlockingCollection <Job> workQueue, BlockingCollection <SubJob> sendQueue)
 {
     _workQueue   = workQueue;
     _sendQueue   = sendQueue;
     _cts         = new CancellationTokenSource();
     _task        = null;
     _resultCache = new SubJobProcessorResultCache(FGenerator.BLOCK_WIDTH * FGenerator.BLOCK_HEIGHT, -2, 10);
 }
Beispiel #2
0
 public SubJobProcessor(BlockingCollection <SubJob> workQueue, BlockingCollection <SubJob> sendQueue, int instanceNum)
 {
     _workQueue   = workQueue;
     _sendQueue   = sendQueue;
     _cts         = new CancellationTokenSource();
     _task        = null;
     InstanceNum  = instanceNum;
     _resultCache = new SubJobProcessorResultCache(FGenerator.BLOCK_WIDTH * FGenerator.BLOCK_HEIGHT, instanceNum, 10);
 }