public Compressor(ITasker tasker, int bufferSize, int compressionThreadsNumber, int maxBuffersToUse) { this.tasker = tasker; this.bufferSize = bufferSize; this.compressionThreadsNumber = compressionThreadsNumber; this.maxBuffersToUse = maxBuffersToUse; }
public void Init(WorkerParams Params) { this.Params = Params; Tasker = new Tasker(Params.TaskerParams); TaskQueue = new ConcurrentQueue <Task>(); if (Params.TaskFinishedFunc != null) { TaskFinished += Params.TaskFinishedFunc; } CreateTheads(); }