public void Add(ThreadStatistics threadStatistics) { lock (syncRoot) { childs.Add(threadStatistics); } }
public void Remove(ThreadStatistics threadStatistics) { lock (syncRoot) { childs.Remove(threadStatistics); processedInFolders += threadStatistics.ProcessedCount; } }