Added support for parralell

This commit is contained in:
2023-05-23 17:35:31 +02:00
parent 6b94935259
commit 7c189bc2d9
+3 -3
View File
@@ -237,8 +237,8 @@ namespace Test_Merge
case 0: case 0:
//object lockObject = new object(); //object lockObject = new object();
//Main Zone //Main Zone
//Parallel.For(0, mainZones[mainZoneId].Zones.Count, async i => Parallel.For(0, mainZones[mainZoneId].Zones.Count, async i =>
for (int i = 0; i < mainZones[mainZoneId].Zones.Count; i++) //for (int i = 0; i < mainZones[mainZoneId].Zones.Count; i++)
{ {
DriverData data = mainZones[mainZoneId].Zones[i].Decode(new List<string>(drivers)); DriverData data = mainZones[mainZoneId].Zones[i].Decode(new List<string>(drivers));
mainResults.Add(data); mainResults.Add(data);
@@ -270,7 +270,7 @@ namespace Test_Merge
} }
} }
DriverDataLogs[i].Add(data); DriverDataLogs[i].Add(data);
}//); });
break; break;
//Next there could be a Title Zone and TrackInfoZone //Next there could be a Title Zone and TrackInfoZone
} }