コード例 #1
0
 public MonitorCompareFiles()
 {
     dam = new Damager("AllStatistics");
     for (int i = 0; i < 6; i++)
     {
         tasks.Add(new WorkerCompare("StatWorker[" + i + "]", works, dam));
     }
 }
コード例 #2
0
 public WorkerCompare(string nameWorker, ConcurrentQueue <WorkCompare> works, Damager dam)
 {
     this.nameWorker = nameWorker;
     this.works      = works;
     this.dam        = dam;
     thr             = new Thread(Run);
     thr.Start();
 }
コード例 #3
0
        public MonitorCompareFiles(List <InfoSearch> qe_path)
        {
            this.qe_path = qe_path;
            dam          = new Damager("AllStatistics");
            for (int i = 0; i < 6; i++)
            {
                tasks.Add(new WorkerCompare("StatWorker[" + i + "]", works, dam));
            }

            for (int i = 0; i < qe_path.Count; i++)
            {
                works.Enqueue(new WorkCompare(qe_path[i]));
            }
        }