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