private bool IsInputBufferSizeThresholdReached()
 {
     lock (inputSegmentsBuffer)
     {
         return(inputSegmentsBuffer.Count >= parallelProcessor.GetMaxCountOfThreads());
     }
 }