public CompressConsumer(Queue <Task> q, List <Task> d, SyncEvents eProCons, SyncEvents eConsWrite) { allTasks = q; doneTasks = d; syncProConsEvents = eProCons; syncConsWriteEvents = eConsWrite; }
static CompressManager() { //инициализация calculateSize(); threadPull = new Thread[maxTasksCount]; syncProConsEvents = new SyncEvents(); syncConsWriteEvents = new SyncEvents(); }
public Consumer(Queue <int> q, SyncEvents e) { _queue = q; _syncEvents = e; }
public CompressProducer(Queue <Task> q, SyncEvents e, String s) { allTasks = q; syncEvents = e; source = s; }
public Producer(Queue <int> q, SyncEvents e) { _queue = q; _syncEvents = e; }