Added support for parralell

This commit is contained in:
2023-05-23 17:35:31 +02:00
parent 6b94935259
commit 7c189bc2d9

View File

@@ -237,8 +237,8 @@ namespace Test_Merge
case 0:
//object lockObject = new object();
//Main Zone
//Parallel.For(0, mainZones[mainZoneId].Zones.Count, async i =>
for (int i = 0; i < mainZones[mainZoneId].Zones.Count; i++)
Parallel.For(0, mainZones[mainZoneId].Zones.Count, async i =>
//for (int i = 0; i < mainZones[mainZoneId].Zones.Count; i++)
{
DriverData data = mainZones[mainZoneId].Zones[i].Decode(new List<string>(drivers));
mainResults.Add(data);
@@ -270,7 +270,7 @@ namespace Test_Merge
}
}
DriverDataLogs[i].Add(data);
}//);
});
break;
//Next there could be a Title Zone and TrackInfoZone
}