protected ZipBase(FileInfo sourceFile, FileInfo destinationFile) { _sourceFile = sourceFile; _destinationFile = destinationFile; InputBlocks = new SimpleConcurrentQueue <ByteBlock>(); OutputBlocks = new SimpleConcurrentDictionary <int, byte[]>(); }
/// <summary> /// Initializes a new instance of the collection processor /// </summary> /// <param name="workItem">Callback for each thread, that processes collection item</param> /// <param name="processingQueue">Processing collection</param> public CollectionProcessorThreadPool(CollectionItemProcessorCallback <T> workItem, SimpleConcurrentQueue <T> processingQueue) { _processingQueue = processingQueue ?? new SimpleConcurrentQueue <T>(); _workItem = workItem; InitPool(); }
static LogFile() { _Consoles = new ConcurrentList <IConsole>(); _LogFilePath = AppDomain.CurrentDomain.BaseDirectory; MaximumPriority = LogFileEntryPriority.Debug; _Messages = new SimpleConcurrentQueue <string>(); _PreviousMessages = new List <string>(); LogWriter.LogMessage("Created log file"); }