public DataWriter(string targetFile, ConsumerSynchronizer synchronizer)
 {
     _targetFile    = targetFile;
     _synchronizer  = synchronizer;
     _writingThread = new Thread(Routine);
 }
Exemple #2
0
 public GZip()
 {
     synchronizer = new ConsumerSynchronizer(_readData, _processedData);
 }
 public CompressionConsumer(ConsumerSynchronizer synchronizer) : base(synchronizer)
 {
 }
Exemple #4
0
 protected AConsumer(ConsumerSynchronizer synchronizer)
 {
     _synchronizer    = synchronizer;
     _consumingThread = new Thread(Routine);
     _synchronizer.Register(this);
 }