Esempio n. 1
0
 private void InitiateWorkerThread()
 {
     if (Interlocked.Exchange(ref _isHandlerWorkerIdle, 0) == 1)
     {
         IndexWorkflowRecordNode punctuatedHead = AddPuctuationAt(BATCH_SIZE);
         Handler.HandleWorkflowsUntilPunctuation(punctuatedHead.AsImmutable()).Ignore();
     }
 }
 private void InitiateWorkerThread()
 {
     if (this.SiloIndexManager.InjectableCode.ShouldRunQueueThread(() => Interlocked.Exchange(ref _isHandlerWorkerIdle, 0) == 1))
     {
         IndexWorkflowRecordNode punctuatedHead = AddPunctuationAt(BATCH_SIZE);
         Handler.HandleWorkflowsUntilPunctuation(punctuatedHead.AsImmutable()).Ignore();
     }
 }