Added support for parralell
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user