Пример #1
0
 public void Add(ThreadStatistics threadStatistics)
 {
     lock (syncRoot)
     {
         childs.Add(threadStatistics);
     }
 }
Пример #2
0
 public void Remove(ThreadStatistics threadStatistics)
 {
     lock (syncRoot)
     {
         childs.Remove(threadStatistics);
         processedInFolders += threadStatistics.ProcessedCount;
     }
 }