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