private void RemakeLoopSections()
{
taskInfos.Clear();
int workerCount = workers.Count;
int subdivisions = workerCount * loopTasksPerThread;
for (int i = 0; i < workerCount; i++)
{
for (int j = 0; j < loopTasksPerThread; j++)
{
taskInfos.Add(new LoopSection(i * loopTasksPerThread + j, subdivisions));
}
}
}